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

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
}