@sidebase/nuxt-auth component
This commit is contained in:
@@ -1,16 +1,37 @@
|
||||
// https://nuxt.com/docs/api/configuration/nuxt-config
|
||||
export default defineNuxtConfig({
|
||||
compatibilityDate: "2025-07-15",
|
||||
//pages: true,
|
||||
ssr: false,
|
||||
devtools: { enabled: false },
|
||||
modules: ["@pinia/nuxt", "@sidebase/nuxt-auth"],
|
||||
runtimeConfig: {
|
||||
baseURL: "http://localhost:3000",
|
||||
},
|
||||
auth: {
|
||||
globalAppMiddleware: false,
|
||||
baseURL: "http://localhost:8000/auth",
|
||||
provider: {
|
||||
type: "local",
|
||||
endpoints: {
|
||||
signIn: { path: "/jwt/create/", method: "post" },
|
||||
signOut: false,
|
||||
signUp: { path: "/users/", method: "post" },
|
||||
getSession: { path: "/users/me/", method: "get" },
|
||||
},
|
||||
pages: {
|
||||
login: "/login",
|
||||
},
|
||||
token: {
|
||||
signInResponseTokenPointer: "/access",
|
||||
type: "JWT",
|
||||
headerName: "Authorization",
|
||||
},
|
||||
sessionDataType: {},
|
||||
},
|
||||
enableSessionRefreshPeriodically: 5000,
|
||||
enableSessionRefreshOnWindowFocus: true,
|
||||
},
|
||||
css: ["vuetify/styles", "@mdi/font/css/materialdesignicons.min.css"],
|
||||
plugins: ["~/plugins/vuetify.js"],
|
||||
components: true,
|
||||
build: {
|
||||
transpile: ["vuetify"],
|
||||
},
|
||||
modules: [
|
||||
'@pinia/nuxt',
|
||||
],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user