google-signin

How to sign out a user after page refresh?

天涯浪子 提交于 2020-01-02 03:11:06
问题 I'm following Google's guide to sign out a user. Considering that gapi.auth2 will be undefined after refreshing the page, I'm doing: if (gapi.auth2) { var auth2 = gapi.auth2.getAuthInstance(); auth2.signOut(); } else { gapi.load('auth2', function () { gapi.auth2.init({ client_id: 'myAppID', cookiepolicy: 'single_host_origin' }).signOut(); }); } But I get uncaught exception: This method can only be invoked after the token manager is started in the else block. I also have tried to store the

Google SignIn API Exception 10

佐手、 提交于 2020-01-01 11:43:06
问题 Approaching to the final stage of the authentification, but something is going wrong in handleSignInResult method. It returns Exception code 10 (Developer error) in logs. Google provides comprehensive description: The application is misconfigured. This error is not recoverable and will be treated as fatal. The developer is an idiot... What should I do to handle this (get an account) and finally retrive values from account? Thank you in advance for your help!!! MainActivity: package ru

Google sign in not working android?

烂漫一生 提交于 2020-01-01 10:05:44
问题 So an issue my project has encountered is that the sign in through google does not work consistently. Ie, it works for my friend and not me from my computer, even though it worked for me yesterday before wiping my phone (phone got corrupted). Our login code is the standard for google sign in, and the problem is that the result keeps returning false I think. the code: protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.welcome_screen

Google sign in not working android?

 ̄綄美尐妖づ 提交于 2020-01-01 10:04:15
问题 So an issue my project has encountered is that the sign in through google does not work consistently. Ie, it works for my friend and not me from my computer, even though it worked for me yesterday before wiping my phone (phone got corrupted). Our login code is the standard for google sign in, and the problem is that the result keeps returning false I think. the code: protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.welcome_screen

Google Sign-In gives error when swiching to secondary Youtube accounts

你离开我真会死。 提交于 2020-01-01 08:04:30
问题 I am currently trying to use gapi.auth2 from Google Sign-In for Websites API and this is the code I have: -- load the library with: <script src="https://apis.google.com/js/platform.js?onload=onLoadGapiCallback" async defer></script> -- initialize an auth2 variable: var auth2; window.onLoadGapiCallback = () => { gapi.load('auth2', () => { auth2 = gapi.auth2.init({ 'client_id': 'CLIENT_ID', 'scope': 'profile email https://www.googleapis.com/auth/youtube.readonly' }); }); }; -- and when a botton

Google Sign-In gives error when swiching to secondary Youtube accounts

一个人想着一个人 提交于 2020-01-01 08:04:04
问题 I am currently trying to use gapi.auth2 from Google Sign-In for Websites API and this is the code I have: -- load the library with: <script src="https://apis.google.com/js/platform.js?onload=onLoadGapiCallback" async defer></script> -- initialize an auth2 variable: var auth2; window.onLoadGapiCallback = () => { gapi.load('auth2', () => { auth2 = gapi.auth2.init({ 'client_id': 'CLIENT_ID', 'scope': 'profile email https://www.googleapis.com/auth/youtube.readonly' }); }); }; -- and when a botton

Recent changes with Firebase Authentication via. Google Sign-In?

℡╲_俬逩灬. 提交于 2020-01-01 06:37:50
问题 I've a question to people who use Firebase Google Sign-In authentication: My app, which has already been working for a couple of months, is using both Google Sign-In and e-mail/password options for Firebase Authentication. However about a week ago I've noticed that the Google Sign-In stopped working. No code was changed, also the e-mail/password option works just as usual. I've checked the documentation (https://firebase.google.com/docs/auth/android/google-signin), it's still the same (My app

Recent changes with Firebase Authentication via. Google Sign-In?

ぐ巨炮叔叔 提交于 2020-01-01 06:37:20
问题 I've a question to people who use Firebase Google Sign-In authentication: My app, which has already been working for a couple of months, is using both Google Sign-In and e-mail/password options for Firebase Authentication. However about a week ago I've noticed that the Google Sign-In stopped working. No code was changed, also the e-mail/password option works just as usual. I've checked the documentation (https://firebase.google.com/docs/auth/android/google-signin), it's still the same (My app

Recent changes with Firebase Authentication via. Google Sign-In?

两盒软妹~` 提交于 2020-01-01 06:37:07
问题 I've a question to people who use Firebase Google Sign-In authentication: My app, which has already been working for a couple of months, is using both Google Sign-In and e-mail/password options for Firebase Authentication. However about a week ago I've noticed that the Google Sign-In stopped working. No code was changed, also the e-mail/password option works just as usual. I've checked the documentation (https://firebase.google.com/docs/auth/android/google-signin), it's still the same (My app

Error 403 Restricted Client with Google Signin in Flutter

不羁岁月 提交于 2019-12-30 06:27:12
问题 I've setup firebase_auth and google_signin about 6 times, but in my latest app I must have forgotten a step. firebase_auth: ^0.11.1 google_sign_in: ^4.0.1+3 When the Google Login page should appear I instead get a webpage that says 403 Error Restricted Client. Further down it says This app is not yet configured to make OAuth requests. 1) I've update the GoogleService-Info.plist file. 2) I've added the section CFBundleURLTypes section to Info.plist file. 3) I've enabled Google auth in my