Skip to content

[bug] Auth error: "InvalidCheck: pkceCodeVerifier value could not be parsed." #842

@brendan-kellam

Description

@brendan-kellam

Describe the bug

When signing in with a SSO provider (In this case, GitHub), I hit the following error:

sourcebot   | [web] | [auth][error] OAuthProfileParseError: Read more at https://errors.authjs.dev#oauthprofileparseerror
sourcebot   | [web] | [auth][cause]: TypeError: Cannot read properties of undefined (reading 'toString')
sourcebot   | [web] |     at Object.profile (/app/packages/web/.next/server/chunks/3289.js:1833:65418)
sourcebot   | [web] |     at cF (/app/packages/web/.next/server/chunks/3289.js:2270:32583)
sourcebot   | [web] |     at cE (/app/packages/web/.next/server/chunks/3289.js:2270:32505)
sourcebot   | [web] |     at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
sourcebot   | [web] |     at async cQ (/app/packages/web/.next/server/chunks/3289.js:2270:37878)
sourcebot   | [web] |     at async cZ (/app/packages/web/.next/server/chunks/3289.js:2270:49756)
sourcebot   | [web] |     at async c_ (/app/packages/web/.next/server/chunks/3289.js:2270:54488)
sourcebot   | [web] |     at async /app/packages/web/.next/server/chunks/192.js:30:42714
sourcebot   | [web] |     at async rN.do (/app/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:5:21042)
sourcebot   | [web] |     at async rN.handle (/app/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:5:25860)
sourcebot   | [web] | [auth][details]: {
sourcebot   | [web] |   "provider": "github"
sourcebot   | [web] | }
sourcebot   | [web] | [auth][error] InvalidCheck: pkceCodeVerifier value could not be parsed. Read more at https://errors.authjs.dev#invalidcheck
sourcebot   | [web] |     at cq (/app/packages/web/.next/server/chunks/3289.js:2270:24138)
sourcebot   | [web] |     at Object.use (/app/packages/web/.next/server/chunks/3289.js:2270:24549)
sourcebot   | [web] |     at cE (/app/packages/web/.next/server/chunks/3289.js:2270:30599)
sourcebot   | [web] |     at async cQ (/app/packages/web/.next/server/chunks/3289.js:2270:37878)
sourcebot   | [web] |     at async cZ (/app/packages/web/.next/server/chunks/3289.js:2270:49756)
sourcebot   | [web] |     at async c_ (/app/packages/web/.next/server/chunks/3289.js:2270:54488)
sourcebot   | [web] |     at async /app/packages/web/.next/server/chunks/192.js:30:42714
sourcebot   | [web] |     at async rN.do (/app/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:5:21042)
sourcebot   | [web] |     at async rN.handle (/app/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:5:25860)
sourcebot   | [web] |     at async k (/app/packages/web/.next/server/app/api/(server)/auth/[...nextauth]/route.js:1:10755)

The UI showed the following (rather unhelpful) error message:
Image

To reproduce

  1. Configure SSO with GitHub
  2. During sign in / sign up, click "Sign Up with GitHub"
  3. You may see this error

Sourcebot deployment information

Sourcebot version (e.g. v3.0.1): Latest

Additional information

This seemed to happen only on the first time I clicked the button. On a subsequent click, the auth worked.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions