© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
4 replies
fernandops26

Help with auth - 'Request failed' Error on auth.signIn() from VSCode

Hi Guys, I am trying setting the user using the refresh_token obtained by callback to my VSCode extension on the url fragment:

This is my code:
// credentials object is an object containing the access_token, refresh_token created from the URL Fragment

// trying do a signIn
const data = await supabaseClient.auth.signIn({
            refreshToken: credentials.refresh_token,
})
// credentials object is an object containing the access_token, refresh_token created from the URL Fragment

// trying do a signIn
const data = await supabaseClient.auth.signIn({
            refreshToken: credentials.refresh_token,
})

I am doing it according to this example on React Native but in VSCode: https://supabase.com/docs/reference/javascript/auth-signin#sign-in-using-a-refresh-token-eg-in-react-native

But, I did receive the
Request Failed
Request Failed
message on the
data
data
object:
{
    "user": null,
    "session": null,
    "error": {
        "message": "Request Failed"
    }
}
{
    "user": null,
    "session": null,
    "error": {
        "message": "Request Failed"
    }
}


BTW I am using the
supabase-js
supabase-js
client V1.
signIn() | Supabase
Log in an existing user, or login via a third-party provider.
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

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Help with Signin – Request failed
SupabaseSSupabase / help-and-questions
4y ago
Signin Error: Network request failed when testing react native app in Testflight, apple auth
SupabaseSSupabase / help-and-questions
7mo ago
supabase auth signin with Apple incomplete
SupabaseSSupabase / help-and-questions
4mo ago
Request failed for auth after subscribing
SupabaseSSupabase / help-and-questions
13mo ago