refresh token
This commit is contained in:
@@ -8,10 +8,21 @@ export default defineNuxtConfig({
|
||||
baseURL: "http://localhost:3000",
|
||||
},
|
||||
auth: {
|
||||
globalAppMiddleware: false,
|
||||
globalAppMiddleware: true,
|
||||
baseURL: "http://localhost:8000/auth",
|
||||
provider: {
|
||||
type: "local",
|
||||
refresh: {
|
||||
isEnabled: true,
|
||||
endpoint: { path: "/refresh", method: "post" },
|
||||
refreshOnlyToken: true,
|
||||
token: {
|
||||
signInResponseRefreshTokenPointer: "/refresh",
|
||||
refreshResponseTokenPointer: "",
|
||||
refreshRequestTokenPointer: "/refresh",
|
||||
maxAgeInSeconds: 60 * 60 * 24,
|
||||
},
|
||||
},
|
||||
endpoints: {
|
||||
signIn: { path: "/jwt/create/", method: "post" },
|
||||
signOut: false,
|
||||
@@ -25,6 +36,7 @@ export default defineNuxtConfig({
|
||||
signInResponseTokenPointer: "/access",
|
||||
type: "JWT",
|
||||
headerName: "Authorization",
|
||||
maxAgeInSeconds: 60 * 30,
|
||||
},
|
||||
sessionDataType: {},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user