chore(dependencies): bump nuxt-auth
This commit is contained in:
parent
37c5689f7d
commit
8b1a5a55dd
@ -46,7 +46,7 @@ export default defineNuxtConfig({
|
|||||||
auth: {
|
auth: {
|
||||||
baseURL: "/api/auth",
|
baseURL: "/api/auth",
|
||||||
provider: {
|
provider: {
|
||||||
type: "refresh",
|
type: "local",
|
||||||
pages: {
|
pages: {
|
||||||
login: "/auth/login",
|
login: "/auth/login",
|
||||||
},
|
},
|
||||||
@ -57,10 +57,7 @@ export default defineNuxtConfig({
|
|||||||
maxAgeInSeconds: 15 * 60,
|
maxAgeInSeconds: 15 * 60,
|
||||||
cookieName: "rockfic_cookie",
|
cookieName: "rockfic_cookie",
|
||||||
},
|
},
|
||||||
refreshToken: {
|
|
||||||
signInResponseRefreshTokenPointer: "/token/refresh",
|
|
||||||
cookieName: "rockfic.refresh",
|
|
||||||
},
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
sessionDataType: {} as IUser,
|
sessionDataType: {} as IUser,
|
||||||
endpoints: {
|
endpoints: {
|
||||||
@ -70,9 +67,18 @@ export default defineNuxtConfig({
|
|||||||
path: "/session",
|
path: "/session",
|
||||||
method: "get",
|
method: "get",
|
||||||
},
|
},
|
||||||
refresh: {
|
},
|
||||||
path: "/refresh",
|
refresh: {
|
||||||
method: "post",
|
isEnabled: true,
|
||||||
|
endpoint: { path: "/refresh", method: "post" },
|
||||||
|
token: {
|
||||||
|
signInResponseRefreshTokenPointer: "/token/refresh",
|
||||||
|
cookieName: "rockfic.refresh",
|
||||||
|
maxAgeInSeconds: 1800,
|
||||||
|
sameSiteAttribute: "lax",
|
||||||
|
secureCookieAttribute: false,
|
||||||
|
cookieDomain: process.env.NODE_ENV == "staging" ? "next.rockfic.com" : process.env.NODE_ENV == "production" ? "www.rockfic.com" : "localhost:3000",
|
||||||
|
httpOnlyCookieAttribute: false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ant-design-vue/nuxt": "^1.4.1",
|
"@ant-design-vue/nuxt": "^1.4.1",
|
||||||
"@pinia/nuxt": "^0.4.11",
|
"@pinia/nuxt": "^0.4.11",
|
||||||
"@sidebase/nuxt-auth": "0.7.0",
|
"@sidebase/nuxt-auth": "0.9.4",
|
||||||
"@tinymce/tinymce-vue": "latest",
|
"@tinymce/tinymce-vue": "latest",
|
||||||
"@types/jsonwebtoken": "^9.0.3",
|
"@types/jsonwebtoken": "^9.0.3",
|
||||||
"@types/lodash-es": "^4.17.12",
|
"@types/lodash-es": "^4.17.12",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user