Closed lucaromano-intelligentia closed 4 months ago
I describe the steps to explain in a simple way.
GoogleSignin.configure({ webClientId: "---", offlineAccess: true, scopes: [ 'https://www.googleapis.com/auth/userinfo.profile', 'https://www.googleapis.com/auth/user.birthday.read', 'https://www.googleapis.com/auth/user.gender.read', 'https://www.googleapis.com/auth/user.addresses.read', 'https://www.googleapis.com/auth/userinfo.email', 'https://www.googleapis.com/auth/plus.login', ], }); await GoogleSignin.hasPlayServices().then(async (hasPlayService) => { if (hasPlayService) { await GoogleSignin.signIn().then((userInfo) => { console.log(userInfo); setState(true); setUser(userInfo); setDisabled(false); }).catch((e) => { console.log("ERROR SIGN-IN: " + JSON.stringify(e)); setUser(null); setDisabled(false); }); } }).catch((e) => { console.log("ERROR HAS PLAY SERVICES: " + JSON.stringify(e)); setUser(null); setDisabled(false); });
Hello and thanks for asking, I'm not really sure what the question here is. Please feel free to open another issue and follow the template. Thank you 🙂
I describe the steps to explain in a simple way.