SupabaseS
Supabase3y ago
HDK

Create user with supabase.auth.admin.createUser without password

When using supabase.auth.admin.createUser it seems that even if I don't specify the password field there is still some kind of password created in the DB. There is a value in the encrypted_password field.

How can I avoid this?

The reason I need this is because our desired auth flow checks if the user has a password set during login and if so, then asks the user to enter their password.
Users who are invited through a different app flow need to be able to just login with a magic link at first and then they can set their password.
Was this page helpful?