Sends an invite link to an email address.
inviteUserByEmail()
method is typically used by administrators to invite users to join the application.inviteUserByEmail
. This is because the browser initiating the invite is often different from the browser accepting the invite which makes it difficult to provide the security guarantees required of the PKCE flow.The email address of the user.
Additional options to be included when inviting.
const \{ data, error \} = await supabase.auth.admin.inviteUserByEmail('[email protected]')