Skip to content

Commit 1f35a22

Browse files
fix(useStrapiToken): improve nuxt._cookies usage (#471)
1 parent 8c0b9c8 commit 1f35a22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/composables/useStrapiToken.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const useStrapiToken = (): Ref<string | null> => {
1111
}
1212

1313
const cookie = useCookie<string | null>(config.strapi.cookieName, config.strapi.cookie)
14-
nuxt._cookies[config.strapi.cookieName] = cookie
14+
nuxt._cookies[config.strapi.cookieName] = cookie.value
1515

1616
if (!cookie.value && config.strapi.token) {
1717
return ref(config.strapi.token)

0 commit comments

Comments
 (0)