Skip to content

Supabase OAuth Callback setup not working #2

@ndom91

Description

@ndom91

Hey, this might be a dumb question, but this is the first time I've used supabase and I can't get the oauth callback setup to work.

I've setup an oauth clientId / clientSecret in Github, and added https://[projectId].supabase.co/auth/v1/callback as the callback URL. I've also added the prop redirectTo={'https://myblogpage.com'} to the AuthModal component.

However, after clicking "Signin with github" in the AuthModal, and asked to allow my custom Github App, I'm redirected to that supabase URL with an accessToken and verification code appended, so far so good. Decoding the jwt accessToken also reveals my correct settings from supabase, but then the browser just says Invalid Redirect.

image

Am I missing something obvious here? I'm assuming supabase is supposed to direct me back to the URL specified in the redirectTo prop. Right?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions