netlify / gotrue

An SWT based API for managing users and issuing SWT tokens.
https://www.gotrueapi.org
MIT License
3.78k stars 279 forks source link

Feature: regex for AUTOCONFIRM #331

Closed c4ffein closed 8 months ago

c4ffein commented 1 year ago

Right now, it is possible to set AUTOCONFIRM to true or false for email and phone. Sometimes, it could be needed to autoconfirm emails from specific domains, or phone numbers from specific countries.

A workaround is possible by setting the status of the created account elsewhere than in gotrue, but the confirmation email would still be sent.

I think it could be useful to provide optional regexes through configuration, and, if the registering email address / phone number matches, it would autoconfirm.

Thanks in advance for considering this issue, whether or not it falls in the scope of this project

github-actions[bot] commented 8 months ago

This issue has been automatically marked as stale because it has not had activity in 1 year. It will be closed in 7 days if no further activity occurs. Thanks!

c4ffein commented 8 months ago

Issue continues here as I am instead planning to use Supabase's version in the future