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.
{{ .Token }}.handleRedirect(_:). It returns .signedIn(_, verification: .recovery).verifyOTP(email:token:type:) with type .recovery..passwordRecovery. Then set the new password with updateUser(_:redirectTo:).undefined
`redirectTo`, the URL that the reset link opens, and `captchaToken`.
try await supabase.auth.resetPassword(
email: "example@email.com",
options: ResetPasswordOptions(
redirectTo: URL(string: "my-app-scheme://callback")!
)
)
.onOpenURL { url in
Task {
if case .signedIn(_, verification: .recovery)? = try await supabase.handleRedirect(url) {
isPasswordRecovery = true
}
}
}
// Then, when the user submits the new password:
try await supabase.auth.updateUser(UpdateUser(password: newPassword))