Open Azeem709 opened 8 months ago
I am seeing the same issue -- it is essentially forcing the user to sign in twice. I am unable to invoke getAccessToken()
without first subscribing to the authState change, which only occurs when I click the Google sign in button or one-tap. Is this intended behavior?
I have this problem as well
Same here.
same here
Any solution for this issue?
I'm trying to integrate sign in with gmail in angular 16 app, and able to get the userInfo using
this.authService.authState.subscribe((user) => { this.user = user; this.loggedIn = (user != null); });
but I need accessToken to pass to resource server and login pop up is prompting again if i try to retrieve access token usinggetAccessToken(): void { this.authService.getAccessToken(GoogleLoginProvider.PROVIDER_ID).then(accessToken => this.accessToken = accessToken); }
Is there a way i can retrieve accessToken without 2 prompts for id token and access tokoen