Skip to content

Commit

Permalink
fix(user): map name, id and email correctly
Browse files Browse the repository at this point in the history
Signed-off-by: Tobias Oitzinger <tobias@xcoorp.com>
  • Loading branch information
toitzi committed Jun 6, 2024
1 parent 05f1620 commit 34f66c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ protected function mapUserToObject(array $user): User
return (new User())->setRaw($user)->map([
'id' => Arr::get($user, 'sub'),
'email' => Arr::get($user, 'email'),
'name' => Arr::get($user, 'given_name') . ' ' . Arr::get($user, 'family_name'),
]);
}

Expand Down

0 comments on commit 34f66c3

Please sign in to comment.