fix: prevent login screen flash when already authenticated (#933)

This commit is contained in:
kolaente 2025-06-12 13:37:50 +02:00 committed by GitHub
parent 58236884dd
commit eac6c98bf1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -433,6 +433,8 @@ export async function getAuthForRoute(to: RouteLocation, authStore) {
router.beforeEach(async (to, from) => {
const authStore = useAuthStore()
await authStore.checkAuth()
if(from.hash && from.hash.startsWith(LINK_SHARE_HASH_PREFIX)) {
to.hash = from.hash
}