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.
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.
GenerateLink exposes a static factory for each link type: .signUp(email:password:userMetadata:redirectTo:), .invite(email:userMetadata:redirectTo:), .magicLink(email:userMetadata:redirectTo:), .recovery(email:redirectTo:), .emailChangeCurrent(email:newEmail:redirectTo:), and .emailChangeNew(email:newEmail:redirectTo:).generateLink() creates the user for .signUp and .invite if one doesn't already exist.redirectTo, the server uses the site URL.let response = try await admin.generateLink(
.signUp(
email: "email@example.com",
password: "secret"
)
)
let actionLink = response.properties.actionLink
let emailOTP = response.properties.emailOTP
let response = try await admin.generateLink(
.recovery(
email: "email@example.com",
redirectTo: URL(string: "https://example.com/reset-password")
)
)