Skip to content

Commit ba8fe88

Browse files
committed
Save google profile in property if verification is passed
1 parent fc2f619 commit ba8fe88

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Authorizer/GoogleAuthorizer.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,11 @@ public function verifyCredentials(array $credentials)
6969

7070
$payload = $this->google_client->verifyIdToken($token)->getAttributes()['payload'];
7171
$this->verifyGoogleProfile($payload, $username);
72+
$this->user_profile = $payload;
7273

7374
$user = $this->user_repository->findByUsername($username);
7475
$this->verifyUser($user);
7576

76-
$this->user_profile = $payload;
77-
7877
return $user;
7978
}
8079

0 commit comments

Comments
 (0)