Skip to content

Commit

Permalink
feat: Add standard 'email', 'photos' and 'name' in 'profile' => same …
Browse files Browse the repository at this point in the history
…structure from other providers
  • Loading branch information
paulovitor-unb authored Aug 21, 2024
1 parent 87bd307 commit c7575cd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/oauth2.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ function parseProfile(body) {
familyName: json.family_name,
displayName: `${json.given_name} ${json.family_name}`,
picture: json.picture,
emails: [{ value: json.email, verified: json.email_verified }],
photos: [{ value: json.picture }],
name: { givenName: json.given_name, familyName: json.family_name },
_raw: body,
_json: json,
};
Expand Down

0 comments on commit c7575cd

Please sign in to comment.