mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-04-28 10:28:33 -05:00
fix: prevent login screen flash when already authenticated (#933)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user