Open trevorpfiz opened 9 months ago
only getting this error in development it seems.
Having the same issue with CredentialsProvider
.
Noticed https://github.com/nextauthjs/next-auth/issues/9869 reporting something similar, so I removed export const runtime = 'edge'
in my route.ts
to see what would happen. It worked and showed the default error message as expected.
can confirm that export const runtime = "edge"
is causing this error
Having the same error with Drizzle adapter and Google provider. Discord provider works properly.
Environment
System: OS: Linux 5.15 Ubuntu 20.04.6 LTS (Focal Fossa) CPU: (16) x64 AMD Ryzen 7 3700X 8-Core Processor Memory: 5.44 GB / 9.72 GB Container: Yes Shell: 5.8 - /usr/bin/zsh Binaries: Node: 20.11.0 - ~/.nvm/versions/node/v20.11.0/bin/node npm: 10.2.4 - ~/.nvm/versions/node/v20.11.0/bin/npm pnpm: 9.0.0-alpha.1 - ~/.local/share/pnpm/pnpm bun: 1.0.14 - ~/.local/share/pnpm/bun Watchman: 2024.01.22.00 - /home/linuxbrew/.linuxbrew/bin/watchman
Reproduction URL
https://github.com/t3-oss/create-t3-turbo
Describe the issue
How to reproduce
click 'Sign in with Discord'. click the cancel button on the Discord signin page. see error.
Expected behavior
it should send back to something like
https://turbo.t3.gg/api/auth/signin?error=OAuthCallbackError
. instead it is thishttp://localhost:3000/api/auth/callback/discord?error=access_denied&error_description=The+resource+owner+or+authorization+server+denied+the+request