Dart Reference v2.0

Send an email invite link

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

Parameters
    email
    REQUIRED
    String

    Email address of the user to invite.

    redirectTo
    Optional
    String

    URI 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;