© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•5mo ago
Subin

Reset Password via email not redirecting back to the iOS app.

I have an iOS app implemented in SwiftUI where I am trying to implement a reset password functionality. I am able to get the reset password email but clicking on it does not redirect me back to the app. Also I am confused as to which one to use here UniversalLinks or CustomURL schemes. Google login is working perfectly fine for me.

I am using following supabase api

Task {
                    do {
                        try await supabase.auth.resetPasswordForEmail(email, redirectTo: URL(string: "com.abc.myApp://auth/callback")!)
                        message = "Password reset email sent!"
                    } catch {
                        print("Reset password error: \(error.localizedDescription)")
                        message = "Error: \(error.localizedDescription)"
                    }
                }
Task {
                    do {
                        try await supabase.auth.resetPasswordForEmail(email, redirectTo: URL(string: "com.abc.myApp://auth/callback")!)
                        message = "Password reset email sent!"
                    } catch {
                        print("Reset password error: \(error.localizedDescription)")
                        message = "Error: \(error.localizedDescription)"
                    }
                }
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Not receiving "reset password" email
SupabaseSSupabase / help-and-questions
3y ago
Deep link from password reset email not opening the app
SupabaseSSupabase / help-and-questions
2y ago
Password reset for email .
SupabaseSSupabase / help-and-questions
2mo ago
reset password email template
SupabaseSSupabase / help-and-questions
3y ago