authjs-nuxt
authjs-nuxt copied to clipboard
[auth][error] UnknownAction: Only GET and POST requests are supported.
Environment
- Operating System: Linux
- Node Version: v18.19.0
- Nuxt Version: 3.11.1
- CLI Version: 3.11.0
- Nitro Version: 2.9.4
- Package Manager: [email protected]
- Builder: -
- User Config: vue, components, alias, nitro, routeRules, css, modules, dayjs, i18n, runtimeConfig, vite, build, typescript
- Runtime Modules: @pinia/[email protected], @nuxtjs/[email protected], [email protected], @nuxt/test-utils/[email protected], @hebilicious/[email protected]
- Build Modules: -
Reproduction
I appologize for no link due to hard work crunch I have..
Describe the bug
After nuxt update getting an error in console. My guess is that the method internalRequest is expecting some request from getRequestFromEvent, but this function is trying to use deprecated method.
Additional context
No response
Logs
ERROR [auth][error] UnknownAction: Only GET and POST requests are supported. .Read more at https://errors.authjs.dev#unknownaction
ERROR at toInternalRequest (file:///home/art/project/node_modules/@auth/core/lib/utils/web.js:19:19)
at Auth (file:///home/art/project/node_modules/@auth/core/index.js:67:35)
at Object.handler (/home/art/project/node_modules/@hebilicious/authjs-nuxt/dist/runtime/lib/server.mjs:23:28)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async file:///home/art/project/node_modules/h3/dist/index.mjs:1962:19
at async Object.callAsync (file:///home/art/project/node_modules/unctx/dist/index.mjs:72:16)
at async Server.toNodeHandle (file:///home/art/project/node_modules/h3/dist/index.mjs:2249:7)