DEV Community

Discussion on: dev.to open source help/discussion thread (v0)

Collapse
 
jajoosam profile image
Samarth Jajoo

Trying github auth with gitpod and failing 😕

https://gitpod-url.gitpod.io/?error=redirect_uri_mismatch&error_description=The+redirect_uri+MUST+match+the+registered+callback+URL+for+this+application.&error_uri=https%3A%2F%2Fdeveloper.github.com%2Fapps%2Fmanaging-oauth-apps%2Ftroubleshooting-authorization-request-errors%2F%23redirect-uri-mismatch&state=[REDACTED]

Any help would be awesome :)

Collapse
 
andy profile image
Andy Zhao (he/him)

Hey Samarth! To get GitHub auth working, you can follow this guide:
docs.dev.to/backend/auth-github/

The one thing you might need to change is the authorization callback URL in your GitHub OAuth app. I'm not sure how it would work with GitPod though; maybe try matching it to whatever GitPod URL you instead of localhost:3000?