Skip to content

fix: hide login prompt until auth check completes#173

Merged
zhenghaoz merged 1 commit intogorse-io:masterfrom
zhangzhenghao:master
Apr 28, 2026
Merged

fix: hide login prompt until auth check completes#173
zhenghaoz merged 1 commit intogorse-io:masterfrom
zhangzhenghao:master

Conversation

@zhangzhenghao
Copy link
Copy Markdown
Contributor

Previously, the login prompt would briefly flash on page load for authenticated users because isAuthenticated defaulted to false.

This PR adds an authChecked flag that only enables the prompt after the auth check completes and confirms the user is not authenticated.

@zhenghaoz zhenghaoz merged commit 72cc9ab into gorse-io:master Apr 28, 2026
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants