I'm using the library angularx-social-login in my angular app, but now there's an error in the console about 'deprecated' Then I try to use
return gapi.auth2
.getAuthInstance()
.signIn({
scope:
'https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/cloud-platform.read-only',
})
.then(
() => {
console.log('Sign-in successful');
this.loadClient();
},
(err: any) => {
console.error('Error signing in', err);
}
);
But is the same error... so what's the new form to sign in with google in angular?
Use Google API Javascript client
See also