From 0c9c56a7b52942a014186da6827a59604142337a Mon Sep 17 00:00:00 2001 From: Chris Veilleux Date: Mon, 25 Mar 2019 18:26:44 -0500 Subject: [PATCH] pass the idToken to the backend instead of the token --- .../shared/src/lib/google-button/google-button.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/shared/src/lib/google-button/google-button.component.ts b/projects/shared/src/lib/google-button/google-button.component.ts index bcf2df7..1802682 100644 --- a/projects/shared/src/lib/google-button/google-button.component.ts +++ b/projects/shared/src/lib/google-button/google-button.component.ts @@ -20,7 +20,7 @@ export class GoogleButtonComponent { const platformProvider = GoogleLoginProvider.PROVIDER_ID; this.authService.signIn(platformProvider).then( (userData) => { - this.googleToken.emit({platform: 'Google', token: userData.token}); + this.googleToken.emit({platform: 'Google', token: userData.idToken}); } ); }