pass the idToken to the backend instead of the token

pull/3/head
Chris Veilleux 2019-03-25 18:26:44 -05:00
parent 50a9de39c1
commit 0c9c56a7b5
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ export class GoogleButtonComponent {
const platformProvider = GoogleLoginProvider.PROVIDER_ID; const platformProvider = GoogleLoginProvider.PROVIDER_ID;
this.authService.signIn(platformProvider).then( this.authService.signIn(platformProvider).then(
(userData) => { (userData) => {
this.googleToken.emit({platform: 'Google', token: userData.token}); this.googleToken.emit({platform: 'Google', token: userData.idToken});
} }
); );
} }