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

View File

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