Skip to content

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

Description

@ldrummond

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions