@@ -46,7 +46,7 @@ export default defineNuxtPlugin(async () => {
try {
await initiateProfile(accessId, bearer.value ?? '', switchId)
} catch (error) {
- if (error instanceof UnauthorizedError) {
+ if (error instanceof UnauthorizedError && runtimeConfig.public.env === 'production') {
redirectToLogout()
} else {
throw error