|
@@ -17,7 +17,8 @@ export default defineNuxtPlugin(async () => {
|
|
|
|
|
|
|
|
const accessId: number = parseInt(accessCookieId.value)
|
|
const accessId: number = parseInt(accessCookieId.value)
|
|
|
if (isNaN(accessId)) {
|
|
if (isNaN(accessId)) {
|
|
|
- throw new Error('Invalid access id')
|
|
|
|
|
|
|
+ redirectToLogout()
|
|
|
|
|
+ return
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const { initiateProfile } = useRefreshProfile()
|
|
const { initiateProfile } = useRefreshProfile()
|