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

标签 nuxtjs3 nuxt-auth

我正在使用 nuxt 3 + nuxt auth 模块

出现此错误:

enter image description here

这是我的 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: ''
                }
              }
            },
          }
      }
})

问题是什么?

最佳答案

关于nuxtjs3 - 将 nuxt 3 与 nuxt auth 模块一起使用时出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/73730361/

相关文章:

nuxtjs3 - nuxt 3 应用程序中的自定义错误页面不起作用

django - 带有 DRF 的带有 cookie 的 Nuxt 身份验证

php - 使用nuxtjs登录laravel sanctum后出现401(未经身份验证)错误

css - Nuxt 3 + SASS : Can't use include paths with @import and @use

nuxt.js - Nuxt 3 和 Vuetify 3 : breakpoints not working?

twitter-bootstrap - 如何将 Bootstrap5 与 Vite 和 Nuxt3 一起使用?

javascript - 如何在 Vue Nuxt 3 项目中包含外部 javascript [StatCounter]?

laravel - nuxtjs 如何/在哪里设置授权 header

Laravel/Sanctum 用户获取问题,使用 auth-next