我正在使用 nuxt 3 + nuxt auth 模块
出现此错误:
这是我的 nuxt 配置
export default defineNuxtConfig({
modules: [
'@nuxtjs/axios',
'@nuxtjs/auth-next'
],
auth: {
strategies: {
cookie: {
cookie: {
// (optional) If set, we check this cookie existence for loggedIn check
name: 'XSRF-TOKEN',
},
endpoints: {
// (optional) If set, we send a get request to this endpoint before login
csrf: {
url: ''
}
}
},
}
}
})
有什么问题吗?
Nuxt3 目前不支持 auth 模块,但已计划在路线图中。
https://v3.nuxtjs.org/community/roadmap#%EF%B8%8F-roadmap
最新官方更新:https://twitter.com/Atinux/status/1570317156033642496?t=YNN0iWL6M5l3Z0xm_ernCg&s=19