© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4w ago•
5 replies
Richard P.

X OAuth 2.0 - "Something Went Wrong" - Shown after following Supabase authorize url

auth
I'm having a bit of trouble here and would love some guidance. I haven't been able to get this to work and feel I'm chasing my tail.

My ultimate goal is to use
signInWithOAuth
signInWithOAuth
with
provider: "x"
provider: "x"


What's currently happening:
1. I invoke the signInWithOAuth flow from the supabase sdk with a redirectTo url and my provider is set to "x" (not twitter)
2. Flow redirects me to sign in with X (on X.com), after I authenticate on X, the page redirects to the following url with a title "Something Went Wrong" (note, on local host, this is where x asks me to authorize the app to access my account)
-- url of the page:
https://x.com/i/oauth2/authorize?client_id=redacted&code_challenge=redacted&code_challenge_method=S256&redirect_uri=https%3A%2F%2Fproject_url.supabase.co%2Fauth%2Fv1%2Fcallback&response_type=code&scope=users.email+tweet.read+users.read+offline.access&state=redacted
3. The payload response is :
{
    "errors": [
        {
            "error": "invalid_request",
            "error_description": "Redirect is requested.",
            "redirect_uri": "https://project_id.supabase.co/auth/v1/callback?error=invalid_request&state="
        }
    ]
}
{
    "errors": [
        {
            "error": "invalid_request",
            "error_description": "Redirect is requested.",
            "redirect_uri": "https://project_id.supabase.co/auth/v1/callback?error=invalid_request&state="
        }
    ]
}

4. The callback url in X is set to the exact same url specified in side-panel of the X OAuth 2.0 policy.
5. I've added my own url as a redirect url and the site url
- site url : https://app-dev.vercel.app/
- callback url: https://app-dev.vercel.app/**
Screenshot_2026-01-09_at_5.34.34_PM.png
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Something went wrong while restoring your project
SupabaseSSupabase / help-and-questions
2w ago
Something went wrong while restoring your project
SupabaseSSupabase / help-and-questions
3mo ago
Something went wrong while restoring your project
SupabaseSSupabase / help-and-questions
4mo ago
Something went wrong while restoring your project
SupabaseSSupabase / help-and-questions
4mo ago