#155 — Add support of emails whitelisting to go public

Repo: Twill-AI/facade State: closed | Status: done Assignee: Unassigned

Created: 2024-10-22 · Updated: 2025-09-15

Description

Caused by #89

@TwillPayments would provide emails list to set.

For @TwillPayments to see users which were rejected by white list of emails Table Editor authusers page may be a source.

AC:

Implementation details.

After deploying to staging found issue in authentication flow - SupabaseService.get_user_from_request not populates with Supabase info “not in cache” users. Fixed in https://github.com/Twill-AI/facade/pull/183.

Next attempt to sign up with white-listed emails failed, POST https://staging.twillai.com/api/v1/self-management/tenant returned 500, logs:

2024-11-08T09:43:36.109156316Z   File "/app/app/auth/auth.py", line 441, in get_current_user_without_tenant_and_alter_tenant_id
2024-11-08T09:43:36.109170752Z     user = await DepsSingleton.get_auth_service().get_user_from_request(
2024-11-08T09:43:36.109176563Z            ^^^

## Notes

_Add implementation notes, blockers, and context here_

## Related

_Add wikilinks to related people, meetings, or other tickets_