Enable the use of AllowUnverifiedEmailSignIns
for Email provider
#22363
Replies: 2 comments 4 replies
-
There is a very new feature that might be a solution for what you are looking for: https://supabase.com/docs/guides/auth/auth-anonymous |
Beta Was this translation helpful? Give feedback.
-
I too have run into this limitation. I will share my use case to help justify why this feature is important to more users. Hopefully the Supabase team can consider prioritizing this feature request. I would like to be able to have a user have a valid session without verifying either an email or an SMS number. I would like to validate emails at a later point in time. Our use case is to validate a user's email and/or phone number at a later point after account creation. So our flow is as follows:
At step 2, we would like to have the user logged in so we can grant or restrict access to data or functionality via RLS policies. We want to associate the data to the specific user and their email, so having anonymous sign ups is not feasible (from my understanding). Nor is allowing public access to read or write data feasible since we want to limit access via RLS policies. At step 4, we want to use on Supabase Auth's built in verification status stored in the Based on this use case and our requirements, the following two modes of using Supabase Auth are not appropriate:
|
Beta Was this translation helpful? Give feedback.
-
Background: supabase/supabase-js#991 (comment) (The comment, as well as the original issue)
For the Email auth provider, Supabase lets users configure whether the user "will need to confirm their email address before signing in for the first time". This field configures the
Autoconfirm
field in the mailer configuration used by the auth backend, and depending on this field:I believe the MailerConfiguration.AllowUnverifiedEmailSignIns field, which defaults to "false" for the Email auth provider, is well-suited to address this limitation. Currently, I see this field used only for external auth providers. However, I think its use case can be extended to email-and-password-based accounts as well.
Beta Was this translation helpful? Give feedback.
All reactions