5
GoTrue: Allow to send confirmation emails when creating users through admin API
Source: supabase/supabase#15506 · opened by @mtte
Use case / problem
In our self-hosted Supabase setup, we set DISABLE_SIGNUP to false for GoTrue, as we are creating the users with our own service. This service makes use of the createUser function or the POST /admin/users endpoint.
In out case, autoconfim is turned off and users have to verify their email. The problem is, that no confirmation emails are sent when creating a user through the admin API.
Proposal
Add an optional parameter flag to the /admin/users endpoint to trigger confirmation emails to be sent.
Workaround
1. Current workaround would be to invite the users instead. This also creates users but sends the invite email instead of the normal email confirmation email.
2. Use the generate link endpoint and send the emails ourselves
3. Trigger a resend using the resend endpoint (current limitation: no redirect_to parameter can be specified)
In our self-hosted Supabase setup, we set DISABLE_SIGNUP to false for GoTrue, as we are creating the users with our own service. This service makes use of the createUser function or the POST /admin/users endpoint.
In out case, autoconfim is turned off and users have to verify their email. The problem is, that no confirmation emails are sent when creating a user through the admin API.
Proposal
Add an optional parameter flag to the /admin/users endpoint to trigger confirmation emails to be sent.
Workaround
1. Current workaround would be to invite the users instead. This also creates users but sends the invite email instead of the normal email confirmation email.
2. Use the generate link endpoint and send the emails ourselves
3. Trigger a resend using the resend endpoint (current limitation: no redirect_to parameter can be specified)
No pledges yet. Be the first to back this.
Comments
Similar requests
Improve DX: warn or block invite emails when Site URL is not configured
1 vote · 0 comments
Does gotrue/supabase support recovery emails?
3 votes · 0 comments
Webhook event structure in GoTrue to fire off when user is created
2 votes · 0 comments
Feature: regex for AUTOCONFIRM
1 vote · 0 comments
Allow creation of custom emails and sending to users
4 votes · 0 comments
No comments yet.