auth-js icon indicating copy to clipboard operation
auth-js copied to clipboard

signIn() not working!

Open vincent-thomas opened this issue 4 years ago • 0 comments

Bug report

Describe the bug

The supabase.auth.signIn({provider: 'google'}); does not work! It just redirects me to this uri: /[SUPABASE_TOKEN]/auth/v1/authorize?provider=google

SUPABASE_TOKEN is the token in the dashboard

To Reproduce

export const signIn = async (client: SupabaseClient) => { return await client.auth.signIn( { provider: 'google' }, { redirectTo: ${window.location.host}/auth/callback } ); };

use this in a supabase project, and you will not go to the redirection page. It doesn't display an error so i can't show much here.

Expected behavior

That i just log in with google as usual

Screenshots

token_in_url Screenshot 2022-02-09 201305

System information

  • OS: [Windows]
  • Browser: brave
  • Version of supabase-js: 1.30.0
  • Version of Node.js: 16.13.1

vincent-thomas avatar Feb 09 '22 19:02 vincent-thomas