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.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user