inviteUserByEmail()
Sends an invite link to an email address.
Parameters
emailrequired
string
The email address of the user.
optionsrequired
object
No description provided.
dataoptional
object
No description provided.
redirectTooptional
string
No description provided.
Properties
Notes
- Requires a
service_role
key. - This function should only be called on a server. Never expose your
service_role
key in the browser.
Examples
Basic example.
const { data: user, error } = await supabase.auth
.api
.inviteUserByEmail('email@example.com')