authjs-nuxt icon indicating copy to clipboard operation
authjs-nuxt copied to clipboard

[auth][error] UnknownAction: Only GET and POST requests are supported.

Open Dodje opened this issue 1 year ago • 1 comments

Environment



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. image

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)

Dodje avatar Mar 22 '24 08:03 Dodje