Send an email invite link
Sends an invite link to the user's email address.
Parameters
email
REQUIRED
StringEmail address of the user to invite.
redirectTo
Optional
StringURI to redirect the user to after they open the invite link.
data
Optional
Map<String, dynamic>A custom data object to store the user's metadata. This maps to the auth.users.user_metadata
column.
final UserResponse res = await supabase.auth.admin
.inviteUserByEmail('[email protected]');
final User? user = res.user;