chore(dependencies): bump nuxt-auth
This commit is contained in:
parent
37c5689f7d
commit
8b1a5a55dd
@ -46,7 +46,7 @@ export default defineNuxtConfig({
|
||||
auth: {
|
||||
baseURL: "/api/auth",
|
||||
provider: {
|
||||
type: "refresh",
|
||||
type: "local",
|
||||
pages: {
|
||||
login: "/auth/login",
|
||||
},
|
||||
@ -57,10 +57,7 @@ export default defineNuxtConfig({
|
||||
maxAgeInSeconds: 15 * 60,
|
||||
cookieName: "rockfic_cookie",
|
||||
},
|
||||
refreshToken: {
|
||||
signInResponseRefreshTokenPointer: "/token/refresh",
|
||||
cookieName: "rockfic.refresh",
|
||||
},
|
||||
|
||||
// @ts-ignore
|
||||
sessionDataType: {} as IUser,
|
||||
endpoints: {
|
||||
@ -70,9 +67,18 @@ export default defineNuxtConfig({
|
||||
path: "/session",
|
||||
method: "get",
|
||||
},
|
||||
},
|
||||
refresh: {
|
||||
path: "/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": {
|
||||
"@ant-design-vue/nuxt": "^1.4.1",
|
||||
"@pinia/nuxt": "^0.4.11",
|
||||
"@sidebase/nuxt-auth": "0.7.0",
|
||||
"@sidebase/nuxt-auth": "0.9.4",
|
||||
"@tinymce/tinymce-vue": "latest",
|
||||
"@types/jsonwebtoken": "^9.0.3",
|
||||
"@types/lodash-es": "^4.17.12",
|
||||
|
Loading…
x
Reference in New Issue
Block a user