abacritt / angularx-social-login

Social login and authentication module for Angular 17
630 stars 387 forks source link

Google scopes not working when using asl-google-signin-button #580

Closed haisham closed 1 year ago

haisham commented 1 year ago

Hello, When using Google sign-in button directive for example: <asl-google-signin-button type='standard' width="250" size='large'>Sign in with Google </asl-google-signin-button>

The scopes requested during initialization in app.module doesn't show up Google sign-in popup, and asks for email and profile and not the additional scope that I request, I am doing initialization like this:

const googleLoginOptions: GoogleInitOptions = { scopes: 'https://www.googleapis.com/auth/calendar.events' }; providers: [ { id: GoogleLoginProvider.PROVIDER_ID, provider: new GoogleLoginProvider('****', googleLoginOptions) } ]