Skip to content

After successful Google auth login screen is briefly visible #261

@timukasr

Description

@timukasr

After authenticating via Google, when user is redirected back to site, <Unauthenticated> section is shown briefly, before state is updated and logged in (<Authenticated>) state is shown.

It seems that isAuthenticated is false for about one second. Then it is updated to show correct value:

{date: '2025-11-15T20:42:10.392Z', isLoading: true, isAuthenticated: false}
{date: '2025-11-15T20:42:10.655Z', isLoading: false, isAuthenticated: false}
{date: '2025-11-15T20:42:11.107Z', isLoading: false, isAuthenticated: false}
{date: '2025-11-15T20:42:11.154Z', isLoading: false, isAuthenticated: false}
{date: '2025-11-15T20:42:11.349Z', isLoading: false, isAuthenticated: true}

Issue occurs only with "@convex-dev/auth": "^0.0.90"
With 0.0.89 it is working as expected -isLoading is true until isAuthenticated becomes true.

{date: '2025-11-15T20:44:01.171Z', isLoading: true, isAuthenticated: false}
{date: '2025-11-15T20:44:01.549Z', isLoading: true, isAuthenticated: false}
{date: '2025-11-15T20:44:02.010Z', isLoading: true, isAuthenticated: false}
{date: '2025-11-15T20:44:02.059Z', isLoading: true, isAuthenticated: false}
{date: '2025-11-15T20:44:02.200Z', isLoading: false, isAuthenticated: true}

Can be reproduced with https://github.com/get-convex/convex-auth-example after updating dependencies.

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