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

Fix react native persistence #71

Closed
LucientZ opened this issue Aug 5, 2023 · 2 comments
Closed

Fix react native persistence #71

LucientZ opened this issue Aug 5, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@LucientZ
Copy link
Collaborator

LucientZ commented Aug 5, 2023

The current version of the app imports the function getReactNativePersistence() from the endpoint "firebase/auth/react-native". This endpoint has been removed recently in firebase 10.0.0, meaning some changes should be made to metro.config.js so that it is instead imported from "react-native".

Refer to:

@LucientZ LucientZ added the bug Something isn't working label Aug 5, 2023
@LucientZ LucientZ self-assigned this Aug 5, 2023
@LucientZ
Copy link
Collaborator Author

LucientZ commented Aug 5, 2023

It looks like persistence is explicitly enabled in this version of the sdk meaning we don't actually have to import getReactNativePersistence() anymore. This means that this can be fixed by just removing the import

@LucientZ
Copy link
Collaborator Author

LucientZ commented Aug 5, 2023

Fixed with 37da7e4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: In-Review
Development

No branches or pull requests

2 participants