generate_link()
: signup
, magiclink
, invite
, recovery
, email_change_current
, email_change_new
, phone_change
.generate_link()
only generates the email link for email_change_email
if the Secure email change is enabled in your project's email auth provider settings.generate_link()
handles the creation of the user for signup
, invite
and magiclink
.undefined
response = supabase.auth.admin.generate_link(\{
"type": "signup",
"email": "email@example.com",
"password": "secret"
\})
response = supabase.auth.admin.generate_link(\{
"type": "invite",
"email": "email@example.com"
\})
response = supabase.auth.admin.generate_link(\{
"type": "magiclink",
"email": "email@example.com"
\})
response = supabase.auth.admin.generate_link(\{
"type": "recovery",
"email": "email@example.com"
\})
# generate an email change link to be sent to the current email address
response = supabase.auth.admin.generate_link(\{
"type": "email_change_current",
"email": "current.email@example.com",
"new_email": "new.email@example.com"
\})
# generate an email change link to be sent to the new email address
response = supabase.auth.admin.generate_link(\{
"type": "email_change_new",
"email": "current.email@example.com",
"new_email": "new.email@example.com"
\})