// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
runtimeConfig: {
public: {
appApiURL: process.env.APP_API_URL || 'http://localhost:8000',
appURL: process.env.APP_URL || 'http://localhost:3000',
assetURL: process.env.ASSET_URL || 'http://localhost:3000',
frontURL: process.env.FRONT_URL || 'http://localhost:9000'
}
},
modules: [
'@nuxt-alt/auth',
'@pinia/nuxt',
'@nuxtjs/device',
// '@nuxtjs/i18n',
'@bootstrap-vue-next/nuxt'
],
build: {
transpile: ['@vuepic/vue-datepicker']
},
device: {
refreshOnResize: true
},
auth: {
fullPathRedirect: true,
globalMiddleware: true,
stores: {
pinia: {
enabled: true,
}
},
strategies: {
'laravelSanctum': {
provider: 'laravel/sanctum',
url: process.env.APP_API_URL || 'http://localhost:8000',
endpoints: {
csrf: {
url: '/sanctum/csrf-cookie',
},
login: {
url: '/api/auth/login',
},
logout: {
url: '/api/auth/logout',
},
user: {
url: '/api/auth/user',
propertyName: '',
}
},
user: {
property: false,
},
},
}
},
})
What is the benefit of /_auth/local/laravelSanctum/authorize ? How can we disable this ?
I got this error and don't have any idea whats wrong
http://localhost:8000/api/auth/login is working fine in postman
Environment
Nuxt Config
Reproduction
Describe the bug
What is the benefit of /_auth/local/laravelSanctum/authorize ? How can we disable this ?
I got this error and don't have any idea whats wrong
http://localhost:8000/api/auth/login is working fine in postman
Additional context
No response
Logs