Questions tagged [firebase-authentication]

1

votes
2

answer
188

Views

Is it able to store Firebase user to our own database?

If I use the user registration and login through the firebase authentication, the user information are stored in the firebase database side. How can I get the user information (such as FirstName, LastName, Gender and etc.) and store in my own database? Is it use the access token to call my API to ch...
ZhengJie Tan
1

votes
1

answer
51

Views

Add Extra displayName to createUserWithEmailAndPassword Method

I like to add an extra filed to insert user's name into the firebase database and then retrieve it, but i don't know if there's a way to do such thing. here's my markup code Name Email address Password {{errorMessage}} {{successMessage}} Register and here's my typescript code for registering user in...
user3683666
1

votes
1

answer
44

Views

How to users can't login before verifying email which after registering account on Firebase?

I have problem with login account. After registering account, Firebase sent verification to email I registered. And then,application notify via toast that user must check the email. If the user doesn't verify the email, they can't login the application but the case is opposite. I can login the regis...
1

votes
0

answer
13

Views

Firebase signInWithEmailAndPassword not firing .then() until after UI focus changes

I'm using firebase .signInWithEmailAndPassword(email, password).then() for authentication in a react-native Android project. I have the function called on an onPress button event. The authentication does take place but for some reason, the .then() does not fire unless I tap somewhere else on the sc...
Ryu Kent
0

votes
0

answer
19

Views

Annonymous authentication user is not showing up in the Firebase console

I implemented the anonymous login function in firebase but when I tap on the button linked to it, I don't see any anonymous appear user in the firebase console This is the function: @IBAction func loginAnonymouslyPressed(_ sender: UIButton) { Auth.auth().signInAnonymously { (authResult, error) in if...
Pietro 96
1

votes
0

answer
17

Views

Flutter: OnScreen keyboard not opening when TextView is focused

I'm trying to create a simple login and signup screen for an app using Firebase Authentication (email/password). When testing on both physical device and emulator, the onscreen keyboard doesn't pop up, when the TextView is focused. On occasion, another screen which I can't identify pops up soon afte...
Lauryn Brough
1

votes
7

answer
9.8k

Views

Firebase AuthResult on task shows cannot resolve symbol

Getting red line over Task. I have imported import com.google.firebase.auth.AuthResult; too, yet it shows cannot resolve symbol authresult in that too. auth = FirebaseAuth.getInstance(); sign_up_button = (Button) findViewById(R.id.sign_up_button); email = (EditText) findViewById(R.id.email); passwor...
1

votes
1

answer
68

Views

Firebase Database - Share Data When UID Unknown?

In Firebase Database; If user_a has data they can access and they want to share this data with user_b, what is the best practice and database structure for securely sharing this data between specific users? Important: user_a doesn't have any information about user_b account, e.g. uid. Detailed Examp...
Josh Kahane
1

votes
1

answer
45

Views

Why is user email null when signing into Facebook account, but not null when signing into Google account?

I'm using Firebase to allow the user to sign in with either their Facebook account or their Google account. I have allowed the creation for multiple accounts under the same email address. This is the method that sends the user to the next screen after successfully signing in with their Facebook acco...
Bert Hanz
1

votes
2

answer
80

Views

What's the difference between instanceId and getIdToken

I don't understand what's the difference between: FirebaseAuth.getInstance().currentUser.getIdToken(true).addOnSuccessListener { Log.d('tag',it.token) // token #1 } FirebaseInstanceId.getInstance().instanceId.addOnSuccessListener { Log.d('tag', it.token) //token #2 } Both of these methods return so...
W0lfEnd
1

votes
1

answer
298

Views

how to reset firebase auth password in react native

I want to know how to reset password of firebase email authentication password in my react-native project . I like to sent an email for resetting the password. How to do that using the following method firebase.auth().sendPasswordResetEmail
0

votes
0

answer
6

Views

Detect if a user might be logged in before onAuthStateChanged() fires? / Check local credentials

Is there a way to check if a user * might* be logged in before onAuthStateChanged gives a result? (In the way: Are there local credentials that can be checked against the server/ with onAuthStateChanged or not?) Background: The UI should be available to the user as soon as possible without unnecessa...
Teapot
1

votes
0

answer
47

Views

Retrieving UserAuth data from Firebase in an Ionic project

I'm struggling to retrieve UserAuth data from firebase and presenting it on a list. I managed to put it there, but I can't get it back. I'v been around so many diffrent tutorials and tested a lot of code :( Are there any suggestions to this issue? My code looks like this. It's probably totally wrong...
Peter Bundgaard
1

votes
1

answer
485

Views

ERROR_APP_NOT_AUTHORIZED Firebase Phonenumber authentication in Ionic App

Iam getting an error unknown error verifying number Error instance: com.google.firebase.auth.FirebaseAuthException Error code: ERROR_APP_NOT_AUTHORIZED While trying to send otp in my ionic app using firebase . this.firebase.verifyPhoneNumber(this.mobileNumber, 60) .then((creds) => { console.log(cre...
Sachin
1

votes
0

answer
62

Views

Weird Scenario in Firebase Auth

I'm working on a Android app which use Firebase to authenticate users. I have faced the following scenario which looks like bit weird to me. I have logged in to my testing app few weeks ago using test account [email protected] After that I used different accounts but not that [email protected] account. After few new...
Chrishan
1

votes
2

answer
485

Views

Should I try not to save Firebase Auth on LocalStorage

While preparing my web app for production I am noticing that Firebase saves a lot of users's data once they sign up/register to my app and these data is save on localStorage. What is my concern is auto generated uid, I don't want users to be able to know their own uid and I don't want that piece of...
Marketingexpert
1

votes
1

answer
380

Views

How do I pass a prop into a react-router Route?

I'm trying to learn react router (v4) in depth by building a simple app with firebase, what i am doing is when a user login with google using firebase they will be redirected to another component and when they go to the root path again '/' they will no longer see the login ( i am doing this by redir...
null
1

votes
1

answer
87

Views

Ionic + firebase error conection in login

i was trying to work with native google map of ionic to add map in my porject, after install the ionic cordova plugin add cordova-plugin-googlemaps --variable API_KEY_FOR_ANDROID='YOUR_ANDROID_API_KEY_IS_HERE' --variable API_KEY_FOR_IOS='YOUR_IOS_API_KEY_IS_HERE' and npm install --save @ionic-native...
Miguel Angel Frias
0

votes
0

answer
8

Views

How do I create a Firebase user from C#?

I am using Firebase, and I want to be able to create a user, get his ID, and then create his profile data. I can do this using Google.Cloud.Firestore, just the way we do it in Android. However, I want to do this from a C# web application. I have not been able to find anything that creates an auth us...
Jaime
1

votes
0

answer
349

Views

AngularFire Authentication best practice

I am building an Angular Application using Firestore and Firebase Authentication. But I am struggling to find a great structure for the authentication process. Do you know some best practices or some public Github Repos I can take a look at? I want to build an Application that works offline and so I...
Jonathan M.
1

votes
0

answer
36

Views

allow the user to have unique access

I want a user to save to firebase by their userid. This is my signup code. I don't know if it is something I am missing in here to allow the user to have unique access? export class SignupPage { signupData = { email: '', password: '', passwordRetyped: '' }; constructor(private navCtrl: NavControlle...
UKbound
1

votes
1

answer
666

Views

Firebase authentication error with react native?

import React, { Component } from 'react'; import RNFirebase from 'react-native-firebase'; const firebase = RNFirebase.initializeApp({ apiKey: 'KEY', authDomain: 'APPNAME.firebaseapp.com', databaseURL: 'https://APPNAME-#####.firebaseio.com/', projectId: 'APPNAME-#####'}); export default firebase; Thi...
sy89
1

votes
3

answer
114

Views

Android firebase connection

I was trying to connect to the Authentication in the firebase using email and password but everytime I enter email and password I get registration failed. Here's my code : public class MainActivity extends AppCompatActivity implements View.OnClickListener { private Button buttonRegsiter; private Edi...
1

votes
1

answer
627

Views

Firebase throwing “java.lang.IllegalStateException: Task is not yet complete” exception inside onComplete

Hello i have a situation here, I have a custom FirebaseAuthLiveData class extending Livedata and implements OnCompleteListener. this class basically does all the authentication related work with firebase. I’m following mvvm architecture for the app. so i’ll be observing the livedata from activit...
Syed Musaddiq Faraz
1

votes
0

answer
526

Views

Angular 4 app on S3 denied access after redirect

I've built a simple angular 4 app that uses firebase as my authentication. And I use loginWithRedirect because loginWithPopup didn't work really on my cell phone. But the problem I'm running into is the redirect leaves the page, obviously, to authenticate, and then comes back to mysite.com/login bu...
John
1

votes
0

answer
74

Views

Implementing FirebaseAuth in Swift 3

I'm using xcode 8 (swift 3) for creating some app, and I have problem with creating Register class. As you probably know Firebase was recently updated, so there is no tutorial for newer version. I was following this tutorial, but without success: https://www.appcoda.com/firebase-login-signup/ import...
Martin Pošmuga
1

votes
1

answer
156

Views

Firebase + Typescript, cannot get accessToken off user object?

In my MobX store, I can't seem to get the accessToken from the Firebase login. The data is clearly there, though. It is for React-Native. Sample: class GlobalStore { @observable loggedIn: boolean; @observable user: any; @action firebaseStatup = () => { firebase.initializeApp({ apiKey: 'somestring',...
cbll
1

votes
1

answer
182

Views

exception while using firebase swift3

I am doing such as this example in the link: https://www.raywenderlich.com/139322/firebase-tutorial-getting-started-2 but I am getting this exception Terminating app due to uncaught exception 'FIRAppNotConfigured', reason: 'Failed to get default FIRDatabase instance. Must call FIRApp.configure() be...
ema so
1

votes
2

answer
683

Views

FirebaseUI auth with facebook error

Error received: Error logging in with Facebook. SERVER_ERROR: [code] 1675030 [message]: ‎Error performing query.‎ [extra]: Errors while executing operation 'ProxyAuthAppLoginStartQuery': At Query.proxy_auth_app_login_start: Field implementation threw an exception. Check your server logs for mor...
Itay Cohen
1

votes
1

answer
115

Views

How to verify JWT?

I'm unsure of the examples in Google's documentation. How do I verify a JWT produced by Firebase, in a Google App engine flexible service? main.go: // ... func main () { InitializeAppWithServiceAccount() go lib.GetStockData() http.HandleFunc('/_ah/someendPoint', SomeHandler) } func InitializeAppWith...
cbll
1

votes
0

answer
137

Views

Vue Firebase Chrome authentication

I have an app that I created from a great tutorial (https://medium.com/@anas.mammeri/vue-2-firebase-how-to-build-a-vue-app-with-firebase-authentication-system-in-15-minutes-fdce6f289c3c) It was working for me yesterday but today I'm getting an error when I try to authenticate with Firebase. The err...
user1079785
1

votes
0

answer
282

Views

Swift Firebase Facebook Login - Gets Name, but email returns nil

Recently my facebook login hasn't been working. It doesn't save into my database but in Firebase authentication it shows someone signed in with facebook but the email is blank. It doesn't save any data to my database which it should. The email is returning nil. My google sign in works. I've checked...
Lukas Bimba
1

votes
0

answer
785

Views

Firebase facebook signInWithRedirect not redirecting to specified page on login success

I am using Firebase's facebook signInWithRedirect but can't figure out why my application won't navigate to the specific page on redirect and instead it just returns back to the home page. I followed the steps on https://firebase.google.com/docs/auth/web/facebook-login and believe I have setup every...
user3892254
1

votes
0

answer
62

Views

React Native + Firebase CLI - Accessing Data

I am attempting to access the 'Name' attribute of a user using the Firebase Database. I created a custom Database through the use of the Firebase CLI and it looks like this: { '111' : { 'Email' : 'examp[email protected]', 'Name' : 'Jane Doe' }, '222' : { 'Email' : '[email protected]', 'Name' : 'John Doe...
joshualavers
1

votes
1

answer
618

Views

Swift: How to check if user's phone number is already in Firebase database before creating a new user

I just started working with Swift a few months ago and to help me learn the language better, I am creating a chat application. For the sign-in method, I am using the phone number method. I have the onboarding process already created but I want to implement something that lets me check if the user ha...
A. Albert
1

votes
1

answer
774

Views

User logout after refreshing the page

I am using Firebase authentication. After authentication when refresh the page user is logged out. I have this in my index.js file but it doesn't work. firebase.auth().setPersistence(firebase.auth.Auth.Persistence.SESSION);
Wick Tutorails
1

votes
2

answer
626

Views

Use Firebase Authenticate UID as child node in Realtime Database

I am trying to add user to the real-time database in Firebase using their auth UID as the child node. I have been using this question as a guide: https://stackoverflow.com/questions/40000899/how-to-link-between-authenticated-users-and-database-in-firebase The users get added when I run the project...
Cian McGrane
1

votes
0

answer
36

Views

Firebase email only sends to @GOOGLE.COM

I have no issues with the confirmation email of firebase when I use @gmail.com, but if I use @hotmail.com the email never arrives. Anyone knows why? I can't seem to find anything on the web about this. This is the code to send the verification email: FirebaseUser user = FirebaseAuth.getInstance().ge...
Robertino Martinez
1

votes
0

answer
76

Views

Is there a way to make a firebase auth token for development?

Background I am building a react native app that posts data to a node server that then posts data to a firebase via the admin firebase library. To post data I am bypassing the app entirely and using postman for speed. Problem My routes are now using an authentication header that should contain a fi...
Joe Lloyd
1

votes
1

answer
1.2k

Views

Angular 5 Firebase Display logged in User's Username in Frontend

I tried to do a Firebase Angular 5 Login and then I tried to print the displayName or whatever Data in the Frontend. auth.service export class User { uid: string; username: string = ''; constructor(auth) { this.uid = auth.uid } } @Injectable() export class AuthService { authState: any = null; curre...
parvaneh

View additional questions