firebase-authentication

Finding correct Firebase Auth id_token on $onAuthStateChanged

别说谁变了你拦得住时间么 提交于 2019-12-05 00:41:40
I am currently using Angular 1.5.8 , Firebase 3.3.0 , and AngularFire 2.0.2 . When I call $firebaseAuth.$signInWithPopup , the promise returns with a firebase user that includes firebase.user.idToken , but when I call $onAuthStateChanged , firebase user does not return with a .user property. What is the correct token to use for server authentication from the $onAuthStateChanged function? I was using the md property, but then it stopped working and switched to a kd property and I realized that not every user has that. Is it the _lat property? It seems to work this way, but I can't seem to find

How to remove captcha verification from Firebase phone auth using javascript?

本秂侑毒 提交于 2019-12-05 00:36:02
I am using firebase phone auth for the very first time and I see captcha verification is must proceed with the process, as per firebase official documentation. Though it serves a good purpose, but sometimes it becomes very bad for the user experience when it starts asking about the road signs, bridges and all. Is there a way to directly skip to the verification code right after getting user's number? As per the documentation, the code is mentioned below. Thanks. var phoneNumber = getPhoneNumberFromUserInput(); var appVerifier = window.recaptchaVerifier; firebase.auth().signInWithPhoneNumber

How to determine if the user signed in to Firebase with email and password or with google sign in?

馋奶兔 提交于 2019-12-05 00:34:42
问题 I am working on a log in for a web application, and I have made it so the user can sign in manually with their email and password or by using a google sign in. Is there a way to determine which method they used? Preferably by using the Firebase authentication state change function. `firebase.auth().onAuthStateChanged(firebaseUser => {....` I know you can tell how they signed in when you go into the Firebase console log but is there a way to determine it using JavaScript code? When using

Invalid API Key supplied using Firebase

回眸只為那壹抹淺笑 提交于 2019-12-04 23:39:20
I'm using Firebase Auth to allow users to sign up using Facebook. I have taken all the steps from here to implement sign up including adding GoogleService-Info.plist to my project. I get the Facebook permission screen all fine but when the app hits FIRAuth.auth()?.signInWithCredential(credential) { (user, error) in this error is returned: An invalid API Key was supplied in the request. Can anyone help me with this please? Thanks Here is my function code to log in using Facebook. @IBAction func signUpWithFacebook() { let fbLogin = FBSDKLoginManager() fbLogin.logInWithReadPermissions(["email"],

firebase createUser without signin [duplicate]

百般思念 提交于 2019-12-04 23:11:36
This question already has an answer here: How to just create an user in Firebase 3 and do not authenticate it? 2 answers Firebase kicks out current user 13 answers My admin user can create other users, but everytime I create a user my admin user is signed out and the new user is signed in automatically, is there any way to create user without signing in? 来源: https://stackoverflow.com/questions/38005960/firebase-createuser-without-signin

FIrebase Phone Authentication supported countries?

限于喜欢 提交于 2019-12-04 22:52:26
问题 Does anyone know if Firebase Phone Authentication works for India phone numbers? I successfully implemented and to work for US numbers ( +1xxxxxxxxxx ), but the text not received when I tried with an India phone number. Wasn't sure if it didn't work or I was missing something. I send as +91xxxxxxxxxx . Digits previous blog discussed US vs India analytic enhancements for adoption, so I assume India is supported. 回答1: From the FAQ, the list of supported countries for Firebase Phone Auth are:

How to build a Stream based on a Future result in Flutter?

混江龙づ霸主 提交于 2019-12-04 22:08:31
I have a Flutter app which uses Firebase-storage and google-signin. the steps I am trying to do is so simple: 1- Sign-in using Google (Done). 2- Get Current User Id (Done). 3- Use the User Id when construct the stream for the stream builder (the problem). what I did so far is that I am using a Future to get the Current User Id, then to inject the user Id inside the Where clause .where('userId', isEqualTo: userId) and this is what I end up with: this is the part where I should create the stream: // Get document's snapshots and return it as stream. Future<Stream> getDataStreamSnapshots() async {

How to decode Firebase JWT token in Python

限于喜欢 提交于 2019-12-04 21:22:10
问题 I have added Firebase to allow clients to authenticate directly from the web app client (browser). I am using the firebase-web JS package and it works great. I can see in my browser that I receive a user object with information about the user, including an idToken . I need to then authenticate this user on my server backend, which is python django. In the Firebase docs I found a how-to for exactly what I am trying to do, which is to verify the id token. Since they don't have the supported

Firebase Auth (with Custom Token, for Linkedin) returns a user with no email and no data (only uid)

冷暖自知 提交于 2019-12-04 20:54:07
I'm trying to login with Linkedin and Firebase. I generate on my server the custom token, I have my private key, I use RS256 and this is my payload: "iss" : service_account_email "sub" : service_account_email "aud", "https://identitytoolkit.googleapis.com/google.identity.identitytoolkit.v1.IdentityToolkit" "iat", Date().timeIntervalSince1970 "exp", Date().timeIntervalSince1970.advanced(by: 3600) "uid", String.randomString(length:28) I create the token, send it back to the app and from this I do: Auth.auth().signIn(withCustomToken: token!, completion: { (user, error) in I receive no error and a

Google Sign In with Firebase Android

大城市里の小女人 提交于 2019-12-04 20:48:49
I tried implementing Google sign in using firebase . I have gone through the documentation and watched a couple of videos but none of them worked. Whenever I click the Google Sign In button nothing happens. Also after successful login I want it to lead to the main activity. My app launches from Sign In activity. public class SignIn extends AppCompatActivity { private FirebaseAuth mAuth; private FirebaseAuth.AuthStateListener mAuthListener; private static final String TAG = "SignInActivity"; private static final int RC_SIGN_IN = 9001; GoogleApiClient mGoogleApiClient; private static Button