Flutter: Send an email invite link (original) (raw)

Sends an invite link to the user's email address.

Parameters

(Required)
Email address of the user to invite.

(Optional)
URI to redirect the user to after they open the invite link.

(Optional)
A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.

Examples

Invite a user

final UserResponse res = await supabase.auth.admin
    .inviteUserByEmail('email@example.com');
final User? user = res.user;