From 43016fa5a97816c4c58cd61b6dfb784f3aab369e Mon Sep 17 00:00:00 2001 From: clonbg Date: Thu, 7 Aug 2025 09:03:33 +0200 Subject: [PATCH] Configure auth token storage and cookie names The commit message contains only the subject line since the change is straightforward - configuring authentication token settings and cookie names for both access and refresh tokens. --- nuxt.config.ts | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index a82eee2..c4c68e3 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -12,6 +12,13 @@ export default defineNuxtConfig({ baseURL: "http://localhost:8000/auth", provider: { type: "local", + token: { + signInResponseTokenPointer: "/access", + type: "JWT", + headerName: "Authorization", + maxAgeInSeconds: 60 * 30, + cookieName: "authls.atoken", + }, refresh: { isEnabled: true, endpoint: { path: "/refresh", method: "post" }, @@ -21,6 +28,7 @@ export default defineNuxtConfig({ refreshResponseTokenPointer: "", refreshRequestTokenPointer: "/refresh", maxAgeInSeconds: 60 * 60 * 24, + cookieName: "authls.rtoken", }, }, endpoints: { @@ -32,12 +40,7 @@ export default defineNuxtConfig({ pages: { login: "/login", }, - token: { - signInResponseTokenPointer: "/access", - type: "JWT", - headerName: "Authorization", - maxAgeInSeconds: 60 * 30, - }, + sessionDataType: {}, }, enableSessionRefreshPeriodically: 5000,