Finished registration + working on own useAuth composable

This commit is contained in:
2024-07-30 17:58:22 +02:00
parent 1d2a89e001
commit f2600a3012
23 changed files with 354 additions and 99 deletions

View File

@@ -2,45 +2,17 @@
import CanvasModule from './transformer/canvas/module'
export default defineNuxtConfig({
modules: [CanvasModule, "@nuxt/content", "@nuxtjs/color-mode", '@sidebase/nuxt-auth'],
modules: [CanvasModule, "@nuxt/content", "@nuxtjs/color-mode"],
css: ['~/assets/common.css', '~/assets/global.css'],
runtimeConfig: {
dbFile: ''
},
components: [
{
path: '~/components',
pathPrefix: false,
},
],
router: {
options: {
scrollBehaviorType: 'smooth'
}
},
auth: {
baseURL: '/api/auth',
provider: {
type: 'local',
//type: 'refresh',
endpoints: {
signIn: { path: '/login', method: 'post' },
signOut: { path: '/logout', method: 'post' },
signUp: { path: '/register', method: 'post' },
getSession: { path: '/session', method: 'get' },
//refresh: { path: '/refresh', method: 'post' }
},
session: {
dataType: {
id: 'string',
username: 'string',
email: 'string',
}
}
}
},
css: ['~/assets/common.css', '~/assets/global.css'],
content: {
ignores: [
'98.Privé'
@@ -78,12 +50,5 @@ export default defineNuxtConfig({
}
}
},
vite: {
vue: {
customElement: ['Line', 'Circle', 'Path']
}
},
compatibilityDate: '2024-07-25'
})