For AI agents: the documentation index is at llms.txt. Guide pages have a markdown version at the same path with .md appended, before any query string or fragment.

Swift: Generate an email link

Generates an email link for a specific action without sending it. This is useful for custom admin functionality where you want to build the email or OTP flow yourself.

Examples

Generate a signup link

let response = try await admin.generateLink(
  .signUp(
    email: "email@example.com",
    password: "secret"
  )
)

let actionLink = response.properties.actionLink
let emailOTP = response.properties.emailOTP

Generate a recovery link

let response = try await admin.generateLink(
  .recovery(
    email: "email@example.com",
    redirectTo: URL(string: "https://example.com/reset-password")
  )
)