Skip to content

Commit

Permalink
fix: invalid key path for maxAge
Browse files Browse the repository at this point in the history
  • Loading branch information
codiam committed May 1, 2023
1 parent 71c7357 commit 25efffd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/composables/useDirectusToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const useDirectusToken = () => {
return nuxtApp._cookies[config.directus.cookieNameRefreshToken]
}

const cookie = useCookie<string | null>(config.directus.cookieNameRefreshToken, { maxAge: config.maxAgeRefreshToken })
const cookie = useCookie<string | null>(config.directus.cookieNameRefreshToken, { maxAge: config.directus.maxAgeRefreshToken })
nuxtApp._cookies[config.directus.cookieNameRefreshToken] = cookie
return cookie
}
Expand Down

0 comments on commit 25efffd

Please sign in to comment.