All Questions
Tagged with expo firebase-authentication
226
questions
15
votes
2
answers
7k
views
Expo Firebase Authentication "While trying to resolve module `idb` from file"
This is my first app. I'm trying to use Firebase for Email/Password authentication. I followed the basic tutorial https://firebase.google.com/docs/auth/web/password-auth#web-version-9, and I keep ...
12
votes
4
answers
8k
views
Best way to persist firebase login using expo go
I am trying to make an app in React Native using Expo Go. have successfully gotten google sign in working and it's all good. Unfortunately, the user's login does NOT persist between app relaunches. At ...
10
votes
2
answers
2k
views
Expo SDK 48 broke Firebase Auth
I have just upgraded to Expo SDK 48 and it seems I am logged out after every refresh.
I downgraded back to SDK 47, and everything works as expected.
I am using firebase v9 (v9.17.1), installed with ...
10
votes
1
answer
4k
views
AppleSignIn (with Firebase & Expo) working locally but not on standalone
I implemented the signinWithApple button on my Expo app, and it's working perfectly locally when i use the host.exp.Exponent on Services ID in Firebase authentification tab for Apple Sign in.
But ...
9
votes
1
answer
6k
views
missing domain in continue url
I am trying to Authenticate with Firebase Using an Email Link in React native and expo.
Here is my code
const actionCodeSettings = {
url: 'ndimensions-9c677.web.app',
handleCodeInApp: ...
8
votes
1
answer
10k
views
React-Native - TypeError: undefined is not an object evaluating useContext
useContext works fine here, the console.log right before the screen change works as expected and gives me the user object (just copy/pasted the relevant info to save you time)
import React, { ...
8
votes
4
answers
1k
views
Error: verifier._reset is not a function. when trying to Sign in with phone using firebase, react native and Expo
I am trying to implement Phone Sign In in mu react native app, but I am getting the following error:
verifier._reset is not a function. (In 'verifier._reset()', 'verifier._reset' is undefined)
at http:...
7
votes
1
answer
7k
views
How to persist Firebase User Auth on React Native/
I have been trying to get this to work for a while now. I built my app using Expo, and a big part of it is to allow the app to be used while the user is offline. The way this is supposed to work is ...
7
votes
0
answers
480
views
I need an Authorized Domain for Firebase Authentication for my local Expo/React Native Project
My goal is redirect a user back to my local Expo application after he has verified his email.
firebase.auth().sendSignInLinkToEmail(email,
{
url: // need this url to redirect back to my ...
6
votes
2
answers
2k
views
How to wait for persisted user from firebase auth in React Native
I use firebase auth in my React Native App (via expo), authentication works fine via an observer, including persistent user:
import firebase from "firebase";
firebase.auth().onAuthStateChanged(user =...
6
votes
3
answers
1k
views
Expo Firebase Auth Persistence Not Working As Expected
I have a firebaseConfig.js that looks like this:
import { initializeApp } from "firebase/app";
import { initializeAuth } from "firebase/auth";
import { getReactNativePersistence } ...
6
votes
0
answers
4k
views
Null is not an object RNGoogleSignin.SIgn_IN_CANCELLED React Native Expo Android
I am gtting and Exception Error in React Native google signin module.
here is the compelte code snipt in the error
TypeError: null is not an object (evaluating 'RNGoogleSignin.SIGN_IN_CANCELLED')
...
5
votes
3
answers
2k
views
Expo: "auth/operation-not-supported-in-this-enviroment"
I develop a react-native (expo) mobile app and try to sign in with a google account to firebase, but I get an error:
"auth/operation-not-supported-in-this-enviroment. This operation is not ...
5
votes
1
answer
2k
views
How to use firebase login with expo
I was following the instructions on Expo's docs, however I was not sure what goes where. I installed firebase using npm. Then the next step is to copy my firebase setup info, which I did from the ...
5
votes
2
answers
752
views
getting the following warning while trying to run my app: Possible Unhandled Promise Rejection (id:1)
I'm currently working on an app and I'm getting this warning and wanted to know what I could do to fix the promise rejection. This warning appears as soon as the screen mounts.
The screenshot of the ...
4
votes
5
answers
18k
views
Firebase error : Error (auth/network-request-failed
I try to build an eCommerce app with Expo and react native but I face a network error, the google service is active on the device (simulator for android and real iPhone for IOS) and I'm connected to ...
4
votes
2
answers
2k
views
expo apple sign in react native returning null values
I have sign in with apple implemented within my react native app. Some times it works some times it doesn't.
When it's not working it returns all null user values like this:
{
"...
4
votes
2
answers
2k
views
Firebase Auth on Expo expiring authentication after a couple of hours
I have an Expo app, using AppAuth to authenticate with Google.
After user is authenticated with Google I build the Firebase Credentials with the Google ID token and sign them in with Firebase.
...
4
votes
1
answer
3k
views
Expo, Firebase, Login with google
in my React Native Expo application, I want to authenticate the user with google account. so I followed the Expo Googlefor a normal sign in with google first, Which was working, then using the idToken ...
4
votes
0
answers
596
views
Is the function "signInWithPopup" from firebase supported on Expo?
I am trying to implement an authentication login method through Azure AD with Firebase on my Expo app.
Here is an extraction of my code, which looks exactly like the Firebase documentation:
const ...
4
votes
1
answer
831
views
expo firebase google signin gives: First argument "idToken" must be a valid string or a valid object or null
https://docs.expo.io/versions/latest/sdk/google
I follow the integration guides on official website when I authenticate with google it gives me such a error
credential failed: First argument "...
3
votes
6
answers
6k
views
Does expo support firebase phone auth?
I am trying to implement firebase phone auth for expo. I have followed many resources on internet but succeeded. Could you please let me know is it possible/available? if it is possible please share ...
3
votes
1
answer
569
views
provider.credential' is undefined in Expo Firebase Google authentication
I'm very new and trying to set Firebase Google authentication in Expo RN app,
Expo docs code snippet below:
https://docs.expo.dev/guides/authentication/#google
import * as React from 'react';
import * ...
3
votes
1
answer
1k
views
Firebase user is logged out on refresh of App - React Native Expo
Context
I am aware that this question has been asked multiple times across stackoverflow, and believe me I have looked through them and tried as many approaches as I could find.
Problem
I have a React ...
3
votes
1
answer
695
views
How to check current password when reset password in firebase and Expo? [closed]
I'm adding password reset function using react native expo and firebase api.
First input is current password.
Second input is new password.
And third input is confirm new password.
To check the ...
3
votes
1
answer
1k
views
How do I use SAML to authenticate a user in Firebase under React Native + Expo
I couldn't find any questions (or answers) on SO or elsewhere when I was looking for a way to add SAML single-sign-on to the React Native app I'm working on, so here I am: see my answer below.
3
votes
1
answer
950
views
expo-auth-session with Google login problems in Development build on android
Loggin in with expo-auth-session works absolutely fine in Expo Go App but as soon as .apk is built, the login workflow opens the signin page and then closes after the login is complete but the ...
3
votes
1
answer
521
views
signinwithemail link error using react-native, Firebase and expo
Error encountered
This operation is not supported in the environment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be ...
3
votes
1
answer
618
views
Expo - Custom scheme URIs are not allowed for "WEB" client type
Everything works ok while using Expo start, but once I run eas build --profile development --platform android mode and I want to login , this screen appear, checked many posts and tried to follow them ...
3
votes
2
answers
4k
views
Adding “Sign In with Apple” in Expo react native app that uses Firebase auth
I have a react native app that uses Expo (managed, not detached) and that uses Firebase auth to provide Facebook login and email/password login.
I now need to implement “Sign in with Apple” as per ...
3
votes
0
answers
172
views
How to validate current password in firebase
So I am building a react native expo app and I wanted to reset the password. For now I am just sending the current signed in user an email for reset but I want to do it within the app.
function={() =&...
3
votes
2
answers
471
views
can't find variable: user.I am using firebase auth and the latest SDK, expo SDK 42, react navigation 6.x.x
import React, { useEffect } from "react";
import { StyleSheet, Text, View } from "react-native";
import { NavigationContainer } from "@react-navigation/native";
import { ...
3
votes
1
answer
326
views
How to authorize users across the react-navigation app?
I have 2 groups of screens in my app.
1) AuthorizedScreens
2) NotAuthorizedScreens
As soon as the app loads I want to check if the user is logged in or not? If the user is logged in, the app ...
2
votes
2
answers
4k
views
React-Native GoogleSignin.SIGN_IN_CANCELLED
I working with react-native firebase sign in with Google from this package here:
https://github.com/react-native-google-signin/google-signin#project-setup-and-initialization
using: yarn add @react-...
2
votes
1
answer
2k
views
Link Expo/Google login to firebase auth
I am attempting to use Expo's Google sign in functionality & link that authorization to my firebase auth. I am having trouble understanding how to transfer the data from the auth token received ...
2
votes
1
answer
4k
views
Getting "Error: Invalid IdP response/credential" trying to add FB user on Firebase Auth list
I've been working on implementing Facebook & Google sign-in method in an app based on Expo.
Having Firebase connected with my app, I want the user to be listed in Firebase Users. While Google ...
2
votes
2
answers
1k
views
onAuthStateChanged now returns null in react-native
For the past couple of weeks, my code worked fine when I used onAuthStateChanged to redirect the logged-in users to the home page after the splash screen. However, as of this week onAuthStateChanged ...
2
votes
2
answers
721
views
Firebase Passwordless Email Authentication Error in Expo App
I am setting up passwordless Auth in my Expo app using the Firebase SDK. I've gotten to the point where emails are being sent to the user's desired address with a redirect link back to the app. When ...
2
votes
1
answer
4k
views
Material UI Avatar Image Upload
I managed it to make an Avatar chooser, but I don't know how to save the picture in Firebase or how to even save it as a Profile picture.
This is how it looks like:
This comes out if I click on the ...
2
votes
1
answer
338
views
Firebase signIn issue in React Native Expo production build - Crashes after selecting Google account in SigninScreen
Firebase signIn issue in React Native Expo production build - Crashes after selecting Google account in SigninScreen
I am facing a critical issue in my React Native app where the app crashes abruptly ...
2
votes
1
answer
3k
views
Is it possible to authenticate a Microsoft login through Firebase in a React Native Expo app?
I am trying to create a Login authentication with Microsoft using Firebase and Azure Active Directory.
Is there a support for Expo?
2
votes
2
answers
685
views
TypeScript import statement cannot find Firebase module in Expo project
I'm starting a brand new Expo project and following all docs as published on August 28, 2021. The import statement specified by the Firebase docs does not work. Here are the steps to reproduce.
expo ...
2
votes
1
answer
330
views
how to connect expo app on my own phone to firebase?Is it possible?
I'm new to React native. Today I wanted to create a login and sign up page linked to firebase. I followed this tutorial -https://www.youtube.com/watch?v=TkuQAjnaSbM&t=110s - word for word and ...
2
votes
1
answer
1k
views
Unable to signinWithCredential() for Ffacebook OAuth with Firebase
I've been unable to successfully use Firebase's signinWithCredentials() for a Facebook login. I've checked and rechecked that i'm using the correct app_id and app_secret on Firebase's authentication ...
2
votes
1
answer
5k
views
TypeError: Cannot read property 'apps' of undefined, js engine: hermes
I am making a react native app using expo for both iOS and android. I want to add firebase phone authentication to my app. I have followed the documentation provided by both expo and firebase but I am ...
2
votes
0
answers
149
views
How to authenticate a user with Firebase Apple Authentication using expo-apple-authentication?
How to authenticate a user with Firebase Apple Authentication using expo-apple-authentication? I tried this below
import { getAuth, OAuthProvider } from "firebase/auth";
import * as ...
2
votes
0
answers
185
views
Expo Firebase invalid-app-credentials error intermittently
I'm using Firebase with React Native Expo and trying to sign in using phone authentication. Everything works most of the time, but every once in a while i'll get the error invalid-app-credentials when ...
2
votes
0
answers
222
views
How to automate sign in Expo React Native app
Got a question: Just came back to one of my old Expo apps that would sign people in even when the app is refreshed using the user state. For some reason, it doesn't work anymore. The code is supposed ...
2
votes
1
answer
268
views
How to create Firebase users with Google Sign-In and React Native App using Expo Go
I am using Expo Go to develop a React Native application. The user authentication is being handled with Firebase Auth. I want to provide an option to register with Google. The firebase docs suggest ...
2
votes
0
answers
342
views
React Native Expo with Firebase Authenticate Microsoft error
I'm doing socials login with firebase (facebook and google is ok) but have problem with microsoft
I used expo-auth-session to get the response.params.code from Azure and then use exchangeCodeAsync to ...