From 4c983557f9483cb5ace561974b27697911cee7cc Mon Sep 17 00:00:00 2001 From: Furman <72356359+Furman1331@users.noreply.github.com> Date: Thu, 14 Nov 2024 15:01:53 +0100 Subject: [PATCH] feature: Add email to google provider-identity metadata (#10081) * feature: Add email to google provider-identity metadata * Include changeset. --------- Co-authored-by: Stevche Radevski --- .changeset/good-yaks-draw.md | 5 +++++ .../modules/providers/auth-google/src/services/google.ts | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/good-yaks-draw.md diff --git a/.changeset/good-yaks-draw.md b/.changeset/good-yaks-draw.md new file mode 100644 index 0000000000000..34c8d40e5cf16 --- /dev/null +++ b/.changeset/good-yaks-draw.md @@ -0,0 +1,5 @@ +--- +"@medusajs/auth-google": patch +--- + +feature: Add email to google provider-identity metadata diff --git a/packages/modules/providers/auth-google/src/services/google.ts b/packages/modules/providers/auth-google/src/services/google.ts index 1a2a323913a23..5f65f0b17c1b2 100644 --- a/packages/modules/providers/auth-google/src/services/google.ts +++ b/packages/modules/providers/auth-google/src/services/google.ts @@ -145,6 +145,7 @@ export class GoogleAuthService extends AbstractAuthModuleProvider { const entity_id = payload.sub const userMetadata = { name: payload.name, + email: payload.email, picture: payload.picture, given_name: payload.given_name, family_name: payload.family_name,