chore(dependencies): bump nuxt-auth

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2024-11-14 17:49:42 -05:00
parent 37c5689f7d
commit 8b1a5a55dd
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C
2 changed files with 15 additions and 9 deletions

View File

@ -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",
},
refresh: {
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,
},
},
},

View File

@ -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",