|
|
@@ -4,6 +4,12 @@ import { useRedirect } from '~/composables/utils/useRedirect'
|
|
|
import { useRefreshProfile } from '~/composables/data/useRefreshProfile'
|
|
|
|
|
|
export default defineNuxtPlugin(async () => {
|
|
|
+
|
|
|
+ const route = useRoute()
|
|
|
+ if (route.path.match(/\/public\/.+/)) {
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
const { redirectToLogout } = useRedirect()
|
|
|
|
|
|
const bearer: CookieRef<string | null> = useCookie('BEARER') ?? null
|