firebase-authentication

firebase multi-location updates user authentication and database

点点圈 提交于 2019-12-24 02:23:55
问题 I have a Form to signup new User with email, password, full name and phone number. I can use firebase.auth().createUserWithEmailAndPassword to create new user if successfully. Then I use firebase.database().ref('users/..').set(..) to save fullname and phone number to firebase database. But If the saving processing to database occur error (By rule write:false for example), I STILL have an user Identifier created in User Authentication. So an user exist without phone number and full number. How

Is firebase checking for user first time

丶灬走出姿态 提交于 2019-12-24 02:14:18
问题 On initial load, firebase tells me, if user is logged in by firing event like this: firebase.auth().onAuthStateChanged(func...) I want to check, if firebase is still checking it. Like show spinner when page loads, wait for firebase to check user and then show app or login/register form, considering user found or not. Now I just have to show page, then init firebase, and later, if firebase founds user, redirect to app. 回答1: The listener passed to onAuthStateChanged will be called with an

Firebase on Android suddenly not working

隐身守侯 提交于 2019-12-24 01:55:06
问题 This person has a similar issue to me Firebase for android not working in my test device suddenly but it was never answered, and the people in the comments seem to have a similar issue. I can access (and update) values in my firebase using nodejs but when I try to do it from android, there are no failures in logcat or anything, it just does not update anything in the database. I checked the database reference and it's exactly the same as in my nodejs script, and my security settings are read:

Node.js authentication server for Firebase Admin SDK - JWT validation issue

◇◆丶佛笑我妖孽 提交于 2019-12-24 01:48:09
问题 I am working on a project where we are going to be using different services in a microservice architecture, and we would like to also use some Firebase services. I am working on an auth server that is going to mint custom JWT's for use in both Firebase, as well as the other API projects. We would like to use the Firebase Auth SDK to easily integrate with FB, Google, Twitter etc, but we need to enrich the user's token with more data. Therefore, my thought process is that I'd create a Node.JS

Node.js authentication server for Firebase Admin SDK - JWT validation issue

痴心易碎 提交于 2019-12-24 01:48:01
问题 I am working on a project where we are going to be using different services in a microservice architecture, and we would like to also use some Firebase services. I am working on an auth server that is going to mint custom JWT's for use in both Firebase, as well as the other API projects. We would like to use the Firebase Auth SDK to easily integrate with FB, Google, Twitter etc, but we need to enrich the user's token with more data. Therefore, my thought process is that I'd create a Node.JS

Firebase email verification not updating status

泄露秘密 提交于 2019-12-24 01:18:53
问题 I am using Firebase Authentication in my app where the users can register using Email & Password and he has to verify the email. The user gets the verification mails, but when he verifies it and comes back to the app, the isEmailVerified() is always false. So my app still doesn't allow the user to use all functions in spite of the fact that he has verified his email. But if they log out and login again, the isEmailVerified() returns true immediately. But is it not good to log out the user and

unsafe cryptographic encryption patterns , How to solve it? [duplicate]

雨燕双飞 提交于 2019-12-24 01:16:57
问题 This question already has answers here : “Your app contains unsafe cryptographic encryption patterns” - How I can get rid of this warning? (2 answers) Closed 3 months ago . I'm encrypting the password for firebase sign in, it's working well but I received a warning in google play console that your app contains unsafe cryptographic encryption patterns how can I get rid of it ?? I'm trying it on android studio. public static class AESCrypt { private static final String ALGORITHM = "AES";

Firebase how to handle linkWithCredential “ERROR_CREDENTIAL_ALREADY_IN_USE” in android

﹥>﹥吖頭↗ 提交于 2019-12-24 01:02:47
问题 OK here is the error I get: 1- When the app starts with phone1, user sign In Anonymously. Uid:ABC (link1) 2- phone1 user decides to login with Google Sign-In. User already has an Uid:ABC, so that User is converted from anonymous account to a permanent account with google sign-in. (link2) 3- With phone2, the app is launched first time and sign in Anonymously. Uid:ZYX (link1) 4- With phone2, user wants to login with same google account. So at this point using linkWithCredential cause "ERROR

Auth.auth().currentUser?.reload() doesn't refresh currentUser.isEmailVerified

送分小仙女□ 提交于 2019-12-24 00:58:14
问题 I'm trying to implement email verification with Firebase. I've created Dynamic Links that redirect to my app successfully. I have tested the link on the web too. It works perfectly and it verifies the email. However, the link on the verification email redirects me to my app, Auth.auth().currentUser.isEmailVerified still gives me false, even though I ran Auth.auth().currentUser?.reload() command beforehand. Any help on this? 回答1: You can set up a timer like this: var verificationTimer : Timer

React Native and Firebase 3

柔情痞子 提交于 2019-12-24 00:45:25
问题 I am trying to integrate React Native and Firebase 3 Authentication. My code. import { FIREBASE_CONFIG } from '../config'; import firebase from 'firebase/app'; import firebaseDatabase from 'firebase/database'; import firebaseAuth from 'firebase/auth'; firebase.initializeApp(FIREBASE_CONFIG); export const rootRef = firebase.database(); export const authRef = firebase.auth(); the config module.exports = { FIREBASE_CONFIG: { apiKey: "long string from firebase", authDomain: "xxxxx.firebaseapp.com