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

AppCheck and Auth cause LogOut race condition on page refresh #645

Open
ldrummond opened this issue Jan 12, 2024 · 0 comments
Open

AppCheck and Auth cause LogOut race condition on page refresh #645

ldrummond opened this issue Jan 12, 2024 · 0 comments

Comments

@ldrummond
Copy link

ldrummond commented Jan 12, 2024

Unfortunately I don't have time currently to reproduce and PR the bug, but I wanted to share to in case anyone runs into a similar issue.

If you are using AppCheck for Auth with ReCaptcha, and are using default persistence state of Auth (local), you may run into this issue. If you log in, then refresh the page, Auth resolves before AppCheck (even if you are using subscribeManually) and logs the user out for invalid ReCaptcha token.

Temporary fix; use "lazy" modules and await loading of AppCheck before loading Auth.

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