diff --git a/src/runtime/composables/refresh/useAuthState.ts b/src/runtime/composables/refresh/useAuthState.ts index 2e2e9a0b..456019b9 100644 --- a/src/runtime/composables/refresh/useAuthState.ts +++ b/src/runtime/composables/refresh/useAuthState.ts @@ -14,7 +14,7 @@ export const useAuthState = (): UseAuthStateReturn => { const localAuthState = useLocalAuthState() // Re-construct state from cookie, also setup a cross-component sync via a useState hack, see https://github.com/nuxt/nuxt/issues/13020#issuecomment-1397282717 const _rawRefreshTokenCookie = useCookie( - config.token.cookieName, + config.refreshToken.cookieName, { default: () => null, maxAge: config.refreshToken.maxAgeInSeconds,