Prepare for the PgBouncer and IPv4 deprecations on 26th January 2024

Javascript Reference v1.0

Send an email invite link

  • Requires a service_role key.
  • This function should only be called on a server. Never expose your service_role key in the browser.
  • The inviteUserByEmail() method is typically used by administrators to invite users to join the application.

const { data: user, error } = await supabase.auth
  .api
  .inviteUserByEmail('email@example.com')