小编Moh*_*shi的帖子

[auth][错误] UnknownAction:无法解析 /api/auth/providers 处的操作。了解更多信息 https://errors.authjs.dev#unknownact​​ion

尝试使用 next-auth authjs-v5 beta 教程设置 next-auth 并收到此未知操作错误,我无法弄清楚问题是什么,并且该网站也没有提到修复程序,只是说了错误名称,没有其他内容

我的包.json

{
  "name": "nextlearn",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "dev": "next dev",
    "build": "next build",
    "start": "next start",
    "lint": "next lint"
  },
  "dependencies": {
    "@auth/core": "^0.26.3",
    "@auth/prisma-adapter": "^1.3.3",
    "@hookform/resolvers": "^3.3.4",
    "@prisma/client": "^5.9.1",
    "@radix-ui/react-label": "^2.0.2",
    "@radix-ui/react-slot": "^1.0.2",
    "bcrypt": "^5.1.1",
    "class-variance-authority": "^0.7.0",
    "clsx": "^2.1.0",
    "lucide-react": "^0.314.0",
    "next": "^14.1.0",
    "next-auth": "^5.0.0-beta.9",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "react-hook-form": "^7.49.3",
    "react-icons": "^5.0.1",
    "tailwind-merge": "^2.2.0",
    "tailwindcss-animate": "^1.0.7",
    "zod": "^3.22.4"
  },
  "devDependencies": {
    "@types/bcrypt": "^5.0.2",
    "@types/node": "^20",
    "@types/react": "^18",
    "@types/react-dom": …
Run Code Online (Sandbox Code Playgroud)

next.js next-auth

2
推荐指数
1
解决办法
1420
查看次数

标签 统计

next-auth ×1

next.js ×1