HTTP 400 on sigin ("/api/auth/github") #251
Replies: 4 comments
-
|
BTW: the "https://github.com/login/oauth/authorize" did work and redirected to https://pages-cms-beta-ten.vercel.app/api/auth/github?code={code}&state={state} |
Beta Was this translation helpful? Give feedback.
-
|
Hard to tell without more info. Can you go to the log panel in Vercel and tell me what you see as the error? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
I see from your code in "app/api/auth/github/route.ts" that it could be two things: |
Beta Was this translation helpful? Give feedback.



Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I've followed the steps to create the GitHub App (with the new Vercel app) and deploy the CMS website to to Vercel.
I did prepare the .env file before deploying the Vercel app and made sure to update teh GitHub App once I had the Vercel app URL.
The deployment of the Vercel app succeeded (https://pages-cms-beta-ten.vercel.app/).
However, I have "HTTP 400" on signin with GitHub. What could be the issue?
PS: I omitted the BASE_URL env variable.
Thanks for your help!
Beta Was this translation helpful? Give feedback.
All reactions