Skip to content

Commit

Permalink
chore: remove debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanorosanelli committed Mar 20, 2024
1 parent 6989974 commit d938763
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/Identifier/OAuth2Identifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ public function identify(array $credentials)
*/
protected function externalAuth(array $credentials): array
{
$this->log('[OAuth2Identifier] Signing in with credentials: ' . json_encode($credentials), 'info');
$apiClient = ApiClientProvider::getApiClient();
$result = $apiClient->post('/auth', json_encode($credentials), ['Content-Type' => 'application/json']);
$tokens = $result['meta'];
Expand All @@ -96,12 +95,10 @@ protected function externalAuth(array $credentials): array
*/
protected function signup(array $credentials): ?array
{
$this->log('[OAuth2Identifier] Signin up with credentials: ' . json_encode($credentials), 'info');
$data = $this->signupData($credentials);
try {
$apiClient = ApiClientProvider::getApiClient();
$apiClient->setupTokens([]);
$this->log('[OAuth2Identifier] BEdita Signup data: ' . json_encode($data), 'info');
$apiClient->post('/signup', json_encode($data), ['Content-Type' => 'application/json']);
// login after signup
$user = $this->externalAuth($credentials);
Expand Down

0 comments on commit d938763

Please sign in to comment.