Generates email links and OTPs. This will not send links or OTPs to the end user. This function is for custom admin functionality.
generateLink(): signup, magiclink, invite, recovery, emailChangeCurrent, emailChangeNew, phoneChange.generateLink() only generates the email link for email_change_email if the "Secure email change" setting is enabled under the "Email" provider in your Supabase project.generateLink() handles the creation of the user for signup, invite and magiclink.The type of invite link to generate.
Email address of the user to invite.
Password for the user. Required for `signup` type.
URI to redirect the user to after they open the invite link.
A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.
final res = await supabase.auth.admin.generateLink(
type: GenerateLinkType.signup,
email: 'email@example.com',
password: 'secret',
);
final actionLink = res.properties.actionLink;