-
-
Notifications
You must be signed in to change notification settings - Fork 474
Description
Bug report
Describe the bug
Using the auth.api.createUser
when email confirmations are disabled does not automatically confirm emails.
For instance, if you disable email confirmations and create a users via auth.api.createUser
, the auth.users
table will show the email_confirmed_at
column as null and the supabase ui will show Waiting for verification..
:
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
- Disable email confirmations
- Create a user via
auth.api.createUser
- View the
auth.users
table - Take a look at the
email_confirmed_at
column which will benull
- Take a look at the supabase ui that shows users and you'll see the
Last Sign In
column showWaiting for verification..
Expected behavior
The expected behavior when creating a user while having email confirmations disabled is that the email_confirmed_at
column on the auth.users
table will be set to the time the user signed up and the supabase ui that shows users will have Last Sign In
set to the time the user signed up.
This is how the behavior is when creating a user via auth.signUp
System information
- OS: macOS
- Version of supabase-js: [1.28.2]
- Version of Node.js: [14.18.0]
Additional context
I also noticed that if you have email confirmations enabled and a user is created via auth.api.createUser
, no email confirmation is sent.