Environment
System:
OS: macOS 14.2.1
CPU: (12) arm64 Apple M2 Pro
Memory: 245.33 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.11.0 - /usr/local/bin/node
Yarn: 1.22.21 - /usr/local/bin/yarn
npm: 10.2.4 - /usr/local/bin/npm
pnpm: 8.7.6 - /usr/local/bin/pnpm
bun: 1.0.35 - /usr/local/bin/bun
Browsers:
Chrome: 124.0.6367.61
Safari: 17.2.1
npmPackages:
next: 14.2.2 => 14.2.2
next-auth: ^5.0.0-beta.16 => 5.0.0-beta.16
react: ^18 => 18.2.0
Reproduction URL
https://github.com/zmzlois/next-auth-repro
Describe the issue
Under this set up, I constantly have this error

How to reproduce
git clone https://github.com/zmzlois/next-auth-repro
and set environment varible secrets for AUTH_SECRET, AUTH_TWITTER_ID and AUTH_TWITTER_SECRET
Click on the sign in button on first page
Expected behavior
After sign in, I should be redirected to dashboard if I am in, the auth secret is generated by npx auth secret and stored in .env file
Environment
System:
OS: macOS 14.2.1
CPU: (12) arm64 Apple M2 Pro
Memory: 245.33 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.11.0 - /usr/local/bin/node
Yarn: 1.22.21 - /usr/local/bin/yarn
npm: 10.2.4 - /usr/local/bin/npm
pnpm: 8.7.6 - /usr/local/bin/pnpm
bun: 1.0.35 - /usr/local/bin/bun
Browsers:
Chrome: 124.0.6367.61
Safari: 17.2.1
npmPackages:
next: 14.2.2 => 14.2.2
next-auth: ^5.0.0-beta.16 => 5.0.0-beta.16
react: ^18 => 18.2.0
Reproduction URL
https://github.com/zmzlois/next-auth-repro
Describe the issue
Under this set up, I constantly have this error

How to reproduce
and set environment varible secrets for
AUTH_SECRET,AUTH_TWITTER_IDandAUTH_TWITTER_SECRETClick on the sign in button on first page
Expected behavior
After sign in, I should be redirected to dashboard if I am in, the auth secret is generated by
npx auth secretand stored in.envfile