将 nuxt 3 与 nuxt auth 模块一起使用时出现错误

问题描述 投票:0回答:1

我正在使用 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: ''
                }
              }
            },
          }
      }
})

有什么问题吗?

vue.js nuxtjs3 nuxt-auth
1个回答
3
投票
© www.soinside.com 2019 - 2024. All rights reserved.