SupabaseS
Supabase3mo ago
L

Deeplinking back to Mobile App in Email Verifications

I am trying to deeplink back to my mobile app when a user clicks a magic link or a sign up link.
As per the docs the href in my a link in the email template is:
{{ .RedirectTo }}?token_hash={{ .TokenHash }}&email={{ .Email }}

I have also tried this with {{ .SiteURL }} instead of {{ .RedirectTo}}.

Anyway the link always comes through in the email as href="#sAmEhAsh?token_hash...".

My URL configuration looks correct and I have tried many variations of com.myapp://auth as the Site URL and various com.myapp://** in the Redirect URLs.

If I instead use http://localhost:3000 for all of this it comes through correctly. I am wondering if there's either a bug or some explicit thing stopping me from doing it with com.myapp://...
Was this page helpful?