Reload während Authentifizierung erlauben
This commit is contained in:
@@ -54,8 +54,10 @@ export default defineNuxtPlugin(() => {
|
|||||||
description = "Deine Sitzung ist abgelaufen oder ungültig."
|
description = "Deine Sitzung ist abgelaufen oder ungültig."
|
||||||
if (!requestPath.includes("/auth/login")) {
|
if (!requestPath.includes("/auth/login")) {
|
||||||
const auth = useAuthStore()
|
const auth = useAuthStore()
|
||||||
|
if (!auth.loading && auth.user) {
|
||||||
auth.expireSession()
|
auth.expireSession()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
break
|
break
|
||||||
case 403:
|
case 403:
|
||||||
title = "Zugriff verweigert"
|
title = "Zugriff verweigert"
|
||||||
|
|||||||
Reference in New Issue
Block a user