googlesigninapi

“Cannot read property 'load' of undefined”

白昼怎懂夜的黑 提交于 2021-02-08 13:58:11
问题 I'm attempting to follow this documentation to integrate with Google sign in, though I'm running into this error in console: Uncaught TypeError: Cannot read property 'load' of undefined at script.js:1 script.js : window.gapi.load('auth2', function() { console.log('Loaded!'); }); I get the error about half of the time, and inspecting the network panel in Chrome, it only happens when the following resource is not loaded: https://apis.google.com/_/scs/apps-static/_/js/k=oz.gapi.en.d2dliHDvPwE.O

Using Google auth2 sign in, force user to enter password

爱⌒轻易说出口 提交于 2020-07-08 11:35:30
问题 I just implemented Google JavaScript sign-in button to our homepage, and everything works the way it suppose to, but thats sometimes bad.. So the thing is that our users use our application on the same computer, 3-4 different users per day. Having a google sign in gives us access to implement some Google product features in our own site. I understand that sign-in with google signs you into the Google account, and also gives permission to application. Also i understand that this is the way it

How to use GoogleAPIClient (deprecated) with SMSRetriver API in Android

☆樱花仙子☆ 提交于 2020-05-23 09:36:28
问题 I am trying to implement SMS Retriever API for SMS verification. The official way mentioned in the documentation says to use GoogleApiClient along with HintRequest to retrieve the mobile number from the device HintRequest hintRequest = new HintRequest.Builder() .setPhoneNumberIdentifierSupported(true) .build(); PendingIntent intent = Auth.CredentialsApi.getHintPickerIntent( googleApiClient, hintRequest); try { startIntentSenderForResult(intent.getIntentSender(), RESOLVE_HINT, null, 0, 0, 0);

Why is my program returning the google sign in 12500 error?

旧城冷巷雨未停 提交于 2020-05-16 03:33:26
问题 I am trying to get google sign in to work with my app. So far I think I have done everything correctly. I followed the google documentation on setting up the googlesigninclient, and can get the app to get to the sign in button, but when someone tries to sign in it returns the 12500 error (SIGN_IN_FAILED). I have the google api credentials set up correctly, and have it set up correctly in my debug.keystore, and I have the credentials.json file downloaded and in my app folder. I will post my

How to refresh ID token after it expires when integrating Google sign-in on Android?

喜夏-厌秋 提交于 2020-01-12 07:20:16
问题 I've followed the guides on https://developers.google.com/ and I can get the Google ID token of the signed in user after the user signed in. But I noticed that the token will expire in 1 hour. I cannot find any official reference that tells me how to deal with expired Google ID token, so I can only ask the user to click the Google sign-in button again. How can I refresh a valid Google ID token after the old one expires, without bothering user to manually sign in again and again? 回答1: Yes,

Trouble signing out with Google Sign in (gapi) with angularjs

时光毁灭记忆、已成空白 提交于 2020-01-04 03:13:32
问题 So I have tried the following templates trying to integrate this: HTML : <google-sign-in-button button-id="login-button" options="options"></google-sign-in-button> CSS : .directive('googleSignInButton', function() { return { scope: { buttonId: '@', options: '&' }, template: '<div></div>', link: function(scope, element, attrs) { var div = element.find('div')[0]; div.id = attrs.buttonId; gapi.signin2.render(div.id, scope.options()); } }; }) -- I've also just tried doing this in the header and

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

When I try to use firebase in my flutter app it produces an error

南楼画角 提交于 2019-12-25 01:53:26
问题 I wanted to use firebase in my flutter app, but when I try to reinstall the app after following the instructions that in the firebase console, but every time I do that same error pops up! I tried by even creating a new project https://codelabs.developers.google.com/codelabs/flutter-firebase/#6 this is the instructions I followed I am coding in the VS-Code not in the Android Studio! This is the error! Launching lib\main.dart on Android SDK built for x86 in debug mode... * Error running Gradle:

Terminating app due to uncaught exception 'NSInvalidArgumentException' - ios google sign in

孤街醉人 提交于 2019-12-24 15:14:04
问题 I'm implementing the google sign in process taken from this tutorial https://developers.google.com/identity/sign-in/ios/sign-in?configured=true&ver=swift as I can see there the author wrote: In these examples, the view controller is a subclass of UIViewController. If, in your project, the class that implements GIDSignInUIDelegate is not a subclass of UIViewController, implement the signInWillDispatch:error:, signIn:presentViewController:, and signIn:dismissViewController: methods of the

GIDSignIn.sharedInstance().currentUser nil when relaunching app

前提是你 提交于 2019-12-22 12:28:09
问题 Initially I was having a problem with the check to see if we have saved data into the keychain. I found this post and followed the suggestion by BhavinBhadani: Whenever you check if ([GIDSignIn sharedInstance].hasAuthInKeychain) , before that add your sign in scopes.. https://github.com/googlesamples/google-services/issues/27 This has solved my first problem of GIDSignIn.sharedInstance().hasAuthInKeychain() returning true after the user has logged in successfully before and then has killed