From c7575cdbf8f55c95890344c12af06435b34f84b8 Mon Sep 17 00:00:00 2001 From: PauloVDosSantos Date: Wed, 21 Aug 2024 14:49:46 -0300 Subject: [PATCH] feat: Add standard 'email', 'photos' and 'name' in 'profile' => same structure from other providers --- lib/oauth2.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/oauth2.js b/lib/oauth2.js index e34f1250..4a17f3d2 100644 --- a/lib/oauth2.js +++ b/lib/oauth2.js @@ -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, };