Skip to content

signIn to open flow in a pop-up or new tab #460

@Olyno

Description

@Olyno

Bug report

Describe the bug

Signin with a provider redirects the user to the associated provider. Problem: because the user didn't accept to login with his provider's account, we can't get the user, and because the redirection is happening after

await client.auth.signIn({ provider: 'google' });

So the user still "null"

To Reproduce

  1. Create a new project
  2. Adds a provider on a click event
  3. See the problem

Expected behavior

Do not make any redirection. The best is probably to open all redirection in another windows, and when the user signins using the provider, then after that making the redirection if needed.

System information

  • OS: Linux Deepin OS
  • Browser (if applies) Chrome
  • Version of supabase-js: ^1.18.1
  • Version of Node.js: v14.16.1

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions