mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-10-27 00:04:23 -04:00
fix: Re-write Nuxt auth backend and get rid of sidebase auth (#6322)
This commit is contained in:
@@ -9,7 +9,6 @@ export default defineNuxtConfig({
|
||||
modules: [
|
||||
"@vite-pwa/nuxt",
|
||||
"@nuxtjs/i18n",
|
||||
"@sidebase/nuxt-auth",
|
||||
"@nuxt/fonts",
|
||||
"vuetify-nuxt-module",
|
||||
"@nuxt/eslint",
|
||||
@@ -126,29 +125,6 @@ export default defineNuxtConfig({
|
||||
baseURL: process.env.SUB_PATH || "",
|
||||
},
|
||||
|
||||
auth: {
|
||||
isEnabled: true,
|
||||
// disableServerSideAuth: true,
|
||||
originEnvKey: "AUTH_ORIGIN",
|
||||
baseURL: "/api",
|
||||
provider: {
|
||||
type: "local",
|
||||
endpoints: {
|
||||
signIn: { path: "/auth/token", method: "post" },
|
||||
signOut: { path: "/auth/logout", method: "post" },
|
||||
getSession: { path: "/users/self", method: "get" },
|
||||
},
|
||||
token: {
|
||||
signInResponseTokenPointer: "/access_token",
|
||||
type: "Bearer",
|
||||
cookieName: AUTH_TOKEN,
|
||||
},
|
||||
pages: {
|
||||
login: "/login",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
// eslint rules
|
||||
eslint: {
|
||||
config: {
|
||||
|
||||
Reference in New Issue
Block a user