google-signin

Google Sign-In for iOS: serverAuthCode is intermittently missing

与世无争的帅哥 提交于 2019-12-21 22:02:01
问题 We first reported this on a Google Issue Tracker but were redirected here. We have been using Google Sign-In for iOS in our iOS app. When a user signs in, our GIDSignInDelegate receives a call to sign(_ signIn: GIDSignIn!, didSignInFor user: GIDGoogleUser!, withError error: Error!) . Until this afternoon, the GIDGoogleUser that we receive in this call has always contained a non-nil authentication?.idToken and a non-nil serverAuthCode , or else error is non-nil and contains information about

How to retrieve user DOB and Gender in Google Sign iOS in swift

夙愿已清 提交于 2019-12-21 21:36:00
问题 I am using google sign In in one of my app. I cant find a way to retrieve Date of Birth and Gender. Can anybody please help. Here is my code using swift - func signIn(signIn: GIDSignIn!, didSignInForUser user: GIDGoogleUser!, withError error: NSError!) { if (error == nil) { // Perform any operations on signed in user here. let userId = user.userID let idToken = user.authentication.idToken let name = user.profile.name let email = user.profile.email print(userId) print(idToken) print(email)

FIrebase Google auth operation not supported in this environment

和自甴很熟 提交于 2019-12-21 20:58:31
问题 I am working on ionic and firebase project, made a login page to sign in with google. I am using this Below. var provider = new firebase.auth.GoogleAuthProvider(); firebase.auth().signInWithRedirect(provider).then(function (result) { var token = result.credential.accessToken; // The signed-in user info. var user = result.user; $state.go('app.homepage'); }).catch(function (error) { }); firebase.auth().getRedirectResult().then(function (result) { if (result.credential) { var token = result

Google Services Plugin cannot function without google-services.json

邮差的信 提交于 2019-12-21 13:35:32
问题 File google-services.json is missing. The Google Services Plugin cannot function I get this error code since I deleted my google-services.json file from my project. Now the obvious way to solve this issue would be to include it again, but I had a reason to remove it. "Note: If you enabled only Google Sign-In when you generated the configuration file, you can skip this step. Google Sign-In does not require the configuration file to be included in your project—generating the file performs the

Where to put credentials.json in Android Studio

混江龙づ霸主 提交于 2019-12-21 07:24:41
问题 I have made a project involving Google Login. The file downloaded was credentials.json. Where do I put this? Since when this has been changed from google-services.json Note: I am not using Firebase. 回答1: The most common place is in your project_folder/app folder. 回答2: You don't need the credentials.json file to add basic google sign in to your app follow this url and click the Configure a project button to add the package name and key sha-1 fingerprint and you should be good to go https:/

Google sign in doesn't work after release of flutter app

本小妞迷上赌 提交于 2019-12-21 06:03:43
问题 I developed a app with Flutter and tested on my device using the command: flutter run --release and everything worked fine. I also tried building the app with: flutter build apk --release and installing it manually, and still everything was ok. I uploaded on the store, and now the login doesn't work anymore. I tried looking at the logcat and the error i get when i try to login is: I/flutter: exception: PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 12500: ,

What is the difference between the two Google JS client CDN's?

*爱你&永不变心* 提交于 2019-12-21 05:41:14
问题 A) <script src="https://apis.google.com/js/api:client.js"></script> versus B) <script src="https://apis.google.com/js/client.js"></script> The only differnence being the api: before client.js . CDN A is used in the Google Sign-In for Websites docs in the Building a button with a custom graphic section. CDN B is used almost in the Google API Client Library for JavaScript (Beta) docs. They both appear to work interchangeably. 回答1: Short answer: there is no difference Long answer: The Google JS

How to re-authenticate a user on Firebase with Google Provider?

核能气质少年 提交于 2019-12-21 03:16:14
问题 The example for using reauthenticate() in Firebase shows only how to re-authenticate a user who signed with Email and Password : AuthCredential credential = EmailAuthProvider.getCredential("user@example.com", "password1234"); FirebaseAuth.getInstance().getCurrentUser().reauthenticate(credential); I also know how to re-authenticate with Facebook Provider ( credential = FacebookAuthProvider.getCredential(AccessToken.getCurrentAccessToken().toString()) ). Problem is there's no equivelant method

How to integrate google+ sign in my android app?

霸气de小男生 提交于 2019-12-20 16:55:16
问题 Hello all actually i need to sign in people from google+ through my app now i read documentation on google where it isstated that To allow users to sign in, integrate Google Sign-In into your app. When you initialize the GoogleApiClient object, request the PLUS_LOGIN and PLUS_ME scopes mGoogleApiClient = new GoogleApiClient.Builder(this) .addConnectionCallbacks(this) .addOnConnectionFailedListener(this) .addApi(Plus.API) .addScope(Scopes.PLUS_LOGIN) .addScope(Scopes.PLUS_ME) .build(); Now i

how to call getBasicProfile() of google to google signin on only button click?

隐身守侯 提交于 2019-12-20 15:25:30
问题 i have take google signin in my website : <script src="https://apis.google.com/js/platform.js" async defer></script> <script> function onSignIn(googleUser) { var profile = googleUser.getBasicProfile(); //console.log('ID: ' + profile.getId()); // Do not send to your backend! Use an ID token instead. //console.log('Image URL: ' + profile.getImageUrl()); //console.log('Name: ' + profile.getName()); //console.log('Email: ' + profile.getEmail()); var user_uname = profile.getName(); var user_email