Skip to content

shouldCreateUser: false still create a user using OTP #637

@cdedreuille

Description

@cdedreuille

Bug report

Describe the bug

I'm using magic links but I don't want new users to sign up. I tried this method but it still creates new accounts:

 const { error } = await supabaseClient.auth.signInWithOtp({
  email,
  options: {
    shouldCreateUser: false,
  },
});

Expected behavior

I would love to keep the magic link functionality for existing users but I don't want new users to sign up as we are still in beta. By adding the shouldCreateUser: false I would expect that the user would not be created.

System information

  • OS: Mac
  • Browser (if applies) : Chrome
  • Version of supabase-js: Version 2.0.0
  • Version of Node.js: Version 16.14.2

Metadata

Metadata

Assignees

No one assigned

    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