Preliminary Checks
Reproduction
https://github.com/clerk/clerk-nextjs-demo-app-router
Publishable key
pk_test_aW5zcGlyZWQtbXVkZmlzaC02MC5jbGVyay5hY2NvdW50cy5kZXYk
Description
Repro steps:
- clone your nextjs starter
- update .env.local with NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY and CLERK_SECRET_KEY
- run
- sign-in with Google
- you will see stale session: no indication the user is already signed in
- hard refresh
- now you will see the user is logged in
Environment
System:
OS: macOS 14.1
CPU: (10) arm64 Apple M1 Pro
Memory: 88.94 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 21.7.3 - ~/.nvm/versions/node/v21.7.3/bin/node
Yarn: 1.22.22 - ~/.nvm/versions/node/v21.7.3/bin/yarn
npm: 10.5.0 - ~/.nvm/versions/node/v21.7.3/bin/npm
pnpm: 9.5.0 - ~/.nvm/versions/node/v21.7.3/bin/pnpm
bun: 1.1.18 - ~/.bun/bin/bun
Browsers:
Brave Browser: 125.1.66.118
Chrome: 128.0.6613.120
Edge: 128.0.2739.67
Safari: 17.1
npmPackages:
@clerk/nextjs: ^5.1.5 => 5.1.5
@types/node: ^20.11.0 => 20.12.7
@types/react: ^18.2.47 => 18.2.79
@types/react-dom: ^18.2.18 => 18.2.25
@types/react-syntax-highlighter: ^15.5.11 => 15.5.11
autoprefixer: ^10.4.16 => 10.4.19
clsx: ^2.1.1 => 2.1.1
next: ^14.2.3 => 14.2.3
postcss: ^8.4.33 => 8.4.38
prism-react-renderer: ^2.3.1 => 2.3.1
react: ^18.3.1 => 18.3.1
react-dom: ^18.3.1 => 18.3.1
react-syntax-highlighter: ^15.5.0 => 15.5.0
tailwindcss: ^3.4.1 => 3.4.3
typescript: ^5.3.3 => 5.4.5
Preliminary Checks
I have reviewed the documentation: https://clerk.com/docs
I have searched for existing issues: https://github.com/clerk/javascript/issues
I have not already reached out to Clerk support via email or Discord (if you have, no need to open an issue here)
This issue is not a question, general help request, or anything other than a bug report directly related to Clerk. Please ask questions in our Discord community: https://clerk.com/discord.
Reproduction
https://github.com/clerk/clerk-nextjs-demo-app-router
Publishable key
pk_test_aW5zcGlyZWQtbXVkZmlzaC02MC5jbGVyay5hY2NvdW50cy5kZXYk
Description
Repro steps:
Environment
System: OS: macOS 14.1 CPU: (10) arm64 Apple M1 Pro Memory: 88.94 MB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 21.7.3 - ~/.nvm/versions/node/v21.7.3/bin/node Yarn: 1.22.22 - ~/.nvm/versions/node/v21.7.3/bin/yarn npm: 10.5.0 - ~/.nvm/versions/node/v21.7.3/bin/npm pnpm: 9.5.0 - ~/.nvm/versions/node/v21.7.3/bin/pnpm bun: 1.1.18 - ~/.bun/bin/bun Browsers: Brave Browser: 125.1.66.118 Chrome: 128.0.6613.120 Edge: 128.0.2739.67 Safari: 17.1 npmPackages: @clerk/nextjs: ^5.1.5 => 5.1.5 @types/node: ^20.11.0 => 20.12.7 @types/react: ^18.2.47 => 18.2.79 @types/react-dom: ^18.2.18 => 18.2.25 @types/react-syntax-highlighter: ^15.5.11 => 15.5.11 autoprefixer: ^10.4.16 => 10.4.19 clsx: ^2.1.1 => 2.1.1 next: ^14.2.3 => 14.2.3 postcss: ^8.4.33 => 8.4.38 prism-react-renderer: ^2.3.1 => 2.3.1 react: ^18.3.1 => 18.3.1 react-dom: ^18.3.1 => 18.3.1 react-syntax-highlighter: ^15.5.0 => 15.5.0 tailwindcss: ^3.4.1 => 3.4.3 typescript: ^5.3.3 => 5.4.5