firebase-authentication

How to modify Email Confirmation message - Firebase

谁说我不能喝 提交于 2019-12-07 16:39:26
问题 I am using email & password authentication provided by Firebase. Below is the message the user gets, when they confirm their email address. Is there any way to customize the below message. I would like to add a link to this message so that the users can be directed to the website. Can someone please suggest, how I could achieve this. 回答1: You can customize this page by setting up a custom email action handler. From there: To customize your Firebase project's email action handler, you must

Using Firebase Authentication with Unity on standalone game

瘦欲@ 提交于 2019-12-07 16:24:57
问题 I want to make a cross platform game using Firebase with Firebase Unity SDK(now Version 1.1.1). I would like to use Firebase realtime database. I know that SDK does not correspond to standalone game and on UnityEditor, but it works without problems on standalone game limited realtime database. However, Authentication can not be used in same situation so it is necessary to open permission rules: "rules": { ".read": true, ".write": true } But it is never realistic to use actually. Do you have

How to get UserName from FirebaseUser using authentication Uid in android?

孤街醉人 提交于 2019-12-07 15:53:37
问题 I registered a user by using createUserWithEmailAndPassword() and login using signInWithEmailAndPassword() methods. Now when I login a user I need to get the username, mobile, that are stored in the user node. I could get the UId for each user, by using this how it possible to get the mentioned information in android? 回答1: all you have to do is use UserProfileChangeRequest mAuth.createUserWithEmailAndPassword(email, password).addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {

Firebase authentication taking too long from Android Device

淺唱寂寞╮ 提交于 2019-12-07 14:37:18
问题 I am using Firebase to register and log users with different providers (google, facebook and email). I have been using this functionality for three month and so far it has worked fine. However, at this moment, when I make the first login after installing the app, it takes more than 10 seconds. I have traced the behavior and I find this listener is causing the delay. private FirebaseAuth firebaseAuth; ... firebaseAuth.signInWithCredential(credential).addOnSuccessListener(new OnSuccessListener

Angular 6 AngularFireAuth check if user is logged in before page rendered

橙三吉。 提交于 2019-12-07 13:37:20
问题 I have set up a new angular 6 project with Firebase auth and Cloud Fire Store. There is a login page where you can login via google and the user data is saved in Firestore (code below). My only issue is how I can check if the user is already logged in, is there any best practice? At the moment im fetching the user data async, but then the navigation is flickering. For one second there is the login button, then it switches to the logout button. Is there good way to check the login state before

angularfire 2: Error “Unhandled Promise rejection: TypeError: Cannot read property”

心不动则不痛 提交于 2019-12-07 13:03:02
问题 I tried an example app to connect to Firebase In my Main.ts I wrote this: import { bootstrap } from '@angular/platform-browser-dynamic'; import { enableProdMode } from '@angular/core'; import { AppComponent, environment } from './app/'; import { FIREBASE_PROVIDERS, defaultFirebase, firebaseAuthConfig, AuthProviders, AuthMethods } from 'angularfire2'; if (environment.production) { enableProdMode(); } bootstrap(AppComponent,[ FIREBASE_PROVIDERS, defaultFirebase({ apiKey: "MYKEY", authDomain:

Google Plus Sign In Account Selection Dialog Issue

一世执手 提交于 2019-12-07 12:53:45
问题 BACKGROUND I am using Google Plus OAuth in my app along with Firebase. When the user taps the sign in button, and account selection dialog appears and the user selects the particular account of choice and signs in. PROBLEM Suppose the user has two accounts in that device, A and B. Initially, he selects account A to sign in and then uses the app and then decides to sign out. Now he clicks the sign in button again, but the account selection dialog doesn't appear and it automatically signs in

Handling authentification to Firebase Database with Fetch in a Service Worker

最后都变了- 提交于 2019-12-07 12:33:42
问题 I'm trying to query a Firebase database from a Service Worker using the Fetch API. However it doesn't work as expected as I can't get authenticated correctly. Basically what I'm trying to do is from origin https://myproject.firebaseapp.com inside a Service Worker I do a call like this : var fetchOptions = {}; fetchOptions.credentials = 'include'; var url = options.messageUrl; var request = new Request('https://myproject.firebaseio.com/user/foobar.json', fetchOptions); messagePromise = fetch

Firebase authentication - expired api key

隐身守侯 提交于 2019-12-07 11:50:53
问题 i am developing a serverless client app that uses Firebase authentication and other services from Google. It was all working nicely, when suddely the FB login authentication stopped working. It happens that when try to login the user i obtain a 400 BADREQUEST with the following body: { "error": { "code": 400, "message": "API key expired. Please renew the API key.", "errors": [{ "message": "API key expired. Please renew the API key.", "domain": "global", "reason": "badRequest" }], "status":

Firebase Auth - User not logged in after Firebase sign up and redirect

旧街凉风 提交于 2019-12-07 11:41:47
问题 I am creating an account for a user with firebase. After the account is created, I redirect to the home page, which checks if I am logged in. Oddly enough, I am not logged in. On Create Account Page: createAccount() { firebaseAuth().createUserWithEmailAndPassword(this.state.email, this.state.password).then((user) => { // write some data to database firebase.database().ref().child('users').child(user.uid).child('someKey').set(this.state.email).then(function() { // send email verification user