angularx-social-login icon indicating copy to clipboard operation
angularx-social-login copied to clipboard

Thx Bro ,Hey, I found a solution that worked for me.

Open ChemaGomezST opened this issue 3 years ago • 2 comments

Hey, I found a solution that worked for me. Inside app.module.ts you have to add the following code in your providers:

providers: [
        {
          id: GoogleLoginProvider.PROVIDER_ID,
          provider: new GoogleLoginProvider(
            'clientId', {
              scope: 'email',
              plugin_name: 'login-app'
            }),
        }
      ], 
      onError: (err: any) => {
        console.error(err);
      },
    } as SocialAuthServiceConfig,
  },
  ],

where plugin_name must be the name you provided for your project in the google oauth api.

Hope this can help someone in need :)

Originally posted by @davidmr163 in https://github.com/abacritt/angularx-social-login/issues/504#issuecomment-1142726408

ChemaGomezST avatar Aug 03 '22 22:08 ChemaGomezST

@ChemaGomezST Want to add a PR documenting this in the Readme?

Heatmanofurioso avatar Aug 04 '22 08:08 Heatmanofurioso

@ChemaGomezST Want to add a PR documenting this in the Readme?

it would be really helpful

davidmr163 avatar Aug 10 '22 09:08 davidmr163

https://github.com/abacritt/angularx-social-login/issues/504#issuecomment-1142726408

Heatmanofurioso avatar Aug 15 '22 11:08 Heatmanofurioso