google-signin

Flutter google sign in stay logged in

孤者浪人 提交于 2020-07-08 03:06:15
问题 I have implemented the firebase auth google sign in but how do i able to stay logged in after the app is closed, i even put this line await _auth.currentUser() but still not working. Below is my login code. LoginPage.dart (OLD) import 'package:flutter/material.dart'; import 'package:firebase_auth/firebase_auth.dart'; //Google provider import 'package:google_sign_in/google_sign_in.dart'; import 'package:flutter_facebook_login/flutter_facebook_login.dart'; import 'package:flutter_auth_buttons

Flutter google sign in stay logged in

老子叫甜甜 提交于 2020-07-08 03:04:14
问题 I have implemented the firebase auth google sign in but how do i able to stay logged in after the app is closed, i even put this line await _auth.currentUser() but still not working. Below is my login code. LoginPage.dart (OLD) import 'package:flutter/material.dart'; import 'package:firebase_auth/firebase_auth.dart'; //Google provider import 'package:google_sign_in/google_sign_in.dart'; import 'package:flutter_facebook_login/flutter_facebook_login.dart'; import 'package:flutter_auth_buttons

how to implement Google Login API in VueJS?

╄→гoц情女王★ 提交于 2020-06-25 08:12:42
问题 So I was using the guide and codes from https://developers.google.com/identity/sign-in/web/ When I clicked the button, it works fine, it will redirect me to google login page, and no problem occurs during authentication. Once finished, it redirected me back to the page (vue component) where the button is located. In theory it should call onSignIn method and print out info with console.log , but it didn't happen. Somehow Vue was not able to excute data-onsuccess="onSignIn" . I tried to change

how to implement Google Login API in VueJS?

半城伤御伤魂 提交于 2020-06-25 08:12:00
问题 So I was using the guide and codes from https://developers.google.com/identity/sign-in/web/ When I clicked the button, it works fine, it will redirect me to google login page, and no problem occurs during authentication. Once finished, it redirected me back to the page (vue component) where the button is located. In theory it should call onSignIn method and print out info with console.log , but it didn't happen. Somehow Vue was not able to excute data-onsuccess="onSignIn" . I tried to change

Did anyone manage to get the id token from google sign in (Flutter)

房东的猫 提交于 2020-06-11 17:14:07
问题 I am trying to connect my users with my back end server , i used the example from the official google sign in plugin for flutter : https://pub.dartlang.org/packages/google_sign_in the sign process goes fine and i get the username and email ect.. but i need the id Token to authenticate the user with my server. Ps: Not using firebase , only google sign in. Can anyone guide me how to get the id Token ? 回答1: You can try using this _googleSignIn.signIn().then((result){ result.authentication.then(

flutter - How to keep user signed-in with Google

自作多情 提交于 2020-06-08 13:15:04
问题 I have used Google Sign In to authenticate users with Firebase Auth, and I successfully get back my Firebase User. I want to keep the user authenticated, when they come back to the app. How can I do the same? 回答1: Users already stay authenticated. After you restart the app, Firebase reads the credentials from disk, and refreshes the user's token. Since this requires a roundtrip to the server, it happens asynchronously. So be sure to await _auth.currentUser() to get notified of the user's

flutter - How to keep user signed-in with Google

*爱你&永不变心* 提交于 2020-06-08 13:14:04
问题 I have used Google Sign In to authenticate users with Firebase Auth, and I successfully get back my Firebase User. I want to keep the user authenticated, when they come back to the app. How can I do the same? 回答1: Users already stay authenticated. After you restart the app, Firebase reads the credentials from disk, and refreshes the user's token. Since this requires a roundtrip to the server, it happens asynchronously. So be sure to await _auth.currentUser() to get notified of the user's

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 does Google Sign in for Android work without a redirect uri?

丶灬走出姿态 提交于 2020-04-18 05:36:48
问题 The Google Sign in library on Android works without specifying any redirect uri. Why is this the case? To which endpoint does Google send the access code to after the user logs in? And how does it redirect the user back to the app? Thanks. 回答1: Now I see, the redirect uri is in fact the app itself, using a uri that points to a page on the app, not to any website. The redirect uri can be set up in the Android app by using the information here: https://developer.android.com/training/app-links

How does Google Sign in for Android work without a redirect uri?

允我心安 提交于 2020-04-18 05:36:16
问题 The Google Sign in library on Android works without specifying any redirect uri. Why is this the case? To which endpoint does Google send the access code to after the user logs in? And how does it redirect the user back to the app? Thanks. 回答1: Now I see, the redirect uri is in fact the app itself, using a uri that points to a page on the app, not to any website. The redirect uri can be set up in the Android app by using the information here: https://developer.android.com/training/app-links