Является ли значение googleUser
таким же, как currentUser
в Google auth2
?
componentDidMount() {
window.gapi.load("client:auth2", () => {
window.gapi.client
.init({
clientId:
'CLIENT-ID.apps.googleusercontent.com',
scope: "email"
})
.then(() => {
this.auth2 = window.gapi.auth2.getAuthInstance()
console.log('Current User Details :' , this.auth2.currentUser.Ab);
console.log(this.auth2);
});
console.log(this.auth2.currentUser);
});
}