Currently, I am triggering password reset like this:
static func firebasePasswordReset(email:String, responseError:@escaping (ResponseError?)->Void, completion:@escaping (
String)->Void){
Auth.auth().sendPasswordReset(withEmail: email) { (error) in
if(error != nil){
responseError(ResponseError.custom(error?.localizedDescription ?? "Unknow error occured. Please try again."))
}else{
completion(NSLocalizedString("Password reset link sent. Please check \(email).", comment: ""))
}
}
}
Though, everything works fine, and link to the appropriate email is sent, a user gets a link that I have set in Firebase console for my website.
So it is https://myprojectname/reset-password.html page.
Now, for iOS users, I don't want them to go to site to reset their password. I want to redirect them to an app, and open a form in their iOS app. Is this somehow possible?