我在我的角度应用程序中使用了angularx-社会化登录库,但是现在控制台中出现了一个关于“deprecated”的错误,所以我尝试使用
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);
}
);但同样的错误..。那么,与google签署的新格式是什么呢?
发布于 2022-04-22 23:17:35
使用Google客户端
https://github.com/google/google-api-javascript-client另请参阅
https://developers.google.com/identityhttps://stackoverflow.com/questions/71973491
复制相似问题