supabase / auth

A JWT based API for managing users and issuing JWT tokens
https://supabase.com/docs/guides/auth
MIT License
1.56k stars 376 forks source link

feat: add authorized email address support #1757

Closed hf closed 2 months ago

hf commented 2 months ago

Adds support for authorized email addresses, useful when needing to restrict email sending to a handful of email addresses. In the Supabase platform use case, this can be used to allow sending of emails on new projects only to the project's owners or developers, reducing email abuse.

To enable it, specify GOTRUE_EXTERNAL_EMAIL_AUTHORIZED_ADDRESSES as a comma-delimited string of email addresses. The addresses should be lowercased and without labels.

Labels are supported so emails will be sent to someone+test1@gmail.com and someone+test2@gmail.com if and only if the someone@gmail.com address is added in the authorized list.

Not a substitute for blocklists!

coveralls commented 2 months ago

Pull Request Test Coverage Report for Build 10665862666

Details


Totals Coverage Status
Change from base Build 10665007028: 0.03%
Covered Lines: 9138
Relevant Lines: 15784

💛 - Coveralls