diff --git a/src/runtime/plugin.ts b/src/runtime/plugin.ts index 20cb7729..6ffba403 100644 --- a/src/runtime/plugin.ts +++ b/src/runtime/plugin.ts @@ -44,9 +44,11 @@ export default defineNuxtPlugin(async (nuxtApp) => { lastRefreshedAt.value = sessionData?.lastRefreshedAt data.value = sessionData?.data rawToken.value = cookieToken.value - } catch (error) { + } + catch (error) { console.error('Failed to parse session data from cookie:', error) - } finally { + } + finally { loading.value = false } }