-
Notifications
You must be signed in to change notification settings - Fork 219
Open
Labels
Description
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:

To reproduce
- Configure SSO with GitHub
- During sign in / sign up, click "Sign Up with GitHub"
- 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.