I try to rest passwords for users in my swift application. I'm using Supabase as backend. How I can trigger the send?
In Java or Flutter it's like:
supabase.auth.resetPasswordForEmail(
'[email protected]')
But in swift I cannot select this option... Can someone help me?
supabase.auth.update(password: newPw)
I can update the password but can't send the email
CodePudding user response:
The Gotrue-Swift also has this method to reset password for Email:
Here's the function prototype:
public func resetPasswordForEmail(
_ email: String, redirectURL: URL? = nil, captchaToken: String? = nil
)
So, you can call it:
resetPasswordForEmail('[email protected]')