Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot get auth flow working correctly with persistence. #614

Open
MWTuttle opened this issue Apr 14, 2024 · 0 comments
Open

Cannot get auth flow working correctly with persistence. #614

MWTuttle opened this issue Apr 14, 2024 · 0 comments

Comments

@MWTuttle
Copy link

MWTuttle commented Apr 14, 2024

Version info

React: 18.2.0

Firebase: 10.7.1

ReactFire: 4.2.3

Expo: 50.0.15

Other (e.g. Node, browser, operating system) (if applicable):

Test case

I'm trying to setup the AuthProvider with an auth object to initialize it. If I use 'getAuth(app)' I get a warning that says I'm using authentication without persistence and says I should use:

initializeAuth(app, {
persistence: getReactNativePersistence(AsyncStorage),
});

If I use that though, I get a firebase error saying auth is already initialized ('auth/already-initialized').

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant