Share feedback, ideas and get community help

D
F
M
a
g

Unable to sign in

When I try to sign in using github I get an error below, I am trying self hosting with Dockers. It seems that its trying to redirect to localhost. My .env seems to be fine. Can someone guide what I am missing. When I try to login using google it throws an error that application does not meets the requirements of OAuth2.0.

Plain Text
# Make sure to change this to your own random string of 32 characters (https://docs.typebot.io/self-hosting/docker#2-add-the-required-configuration)
ENCRYPTION_SECRET=<my key here>

DATABASE_URL=postgresql://postgres:typebot@typebot_typebot-db_1:5432/typebot

NEXTAUTH_URL=http://146.190.35.191:8080
NEXT_PUBLIC_VIEWER_URL=http://146.190.35.191:8081

GITHUB_CLIENT_ID=<id here>
GITHUB_CLIENT_SECRET=<my secret here>

S3_ACCESS_KEY=minio
S3_SECRET_KEY=minio123
S3_BUCKET=typebot
S3_PORT=9000
S3_ENDPOINT=localhost
S3_SSL=false


Plain Text
http://localhost:3000/api/auth/callback/github?error=redirect_uri_mismatch&error_description=The+redirect_uri+MUST+match+the+registered+callback+URL+for+this+application.&error_uri=https%3A%2F%2Fdocs.github.com%2Fapps%2Fmanaging-oauth-apps%2Ftroubleshooting-authorization-r
z
B
6 comments
I do not get any error in the localhost env using pnpm and dev containers.
@Baptiste any help would be appreciated thanks
I see redirect_uri_mismatch
Have you correctly configured the callback URL on Github to: $NEXTAUTH_URL/api/auth/callback/github ?
Yes thats how its configured @Baptiste
Can you tell us what URL you see on your browser while logging in and are you sure that it matches the URL you inserted in the GIthub app config?
Add a reply
Sign up and join the conversation on Discord
Join