Menu

Password reset deep links in SwiftUI with Supabase Auth
📰

Password reset deep links in SwiftUI with Supabase Auth

DEV Community: ios·Robert Long·6 days ago
#Fh3BF0kv
#devtoios#devto#dev#password#session
Long article (888 words) — no AI summary yet.
Reading 0:00
15s threshold

Password reset is the flow users hit at the worst moment, and it is the one most often half-built. The email arrives, the link opens your app, and then nothing happens. Or worse, the user is quietly signed in and never learns they should choose a new password.

This post walks through the full flow with supabase-swift: requesting the email, receiving the link through a custom URL scheme, turning that link into a session, and updating the password. It assumes you already have a Supabase project and a configured SupabaseClient .

How the flow works

Supabase emails the user a link to its own verification endpoint. After verifying the token, Supabase redirects to the URL you passed as redirectTo , and your app receives that URL. Recent supabase-swift versions use PKCE by default, so the redirect carries a code that the SDK exchanges for a session. That session is a real, fully authenticated session, but its purpose is narrow: it exists so the user can choose a new password.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.