Magic Link emailRedirectTo Parameter Being Ignored
The emailRedirectTo parameter in the /auth/v1/otp API endpoint is completely ignored when sending magic link emails. This forces me to hardcode redirect URLs in the email template, making it impossible to support multiple environments without manually changing the template.
What I've Tried: - emailRedirectTo (camelCase) - Ignored - email_redirect_to (snake_case) - Ignored - Added URLs to Redirect URL whitelist - Still ignored - Wildcard patterns (http://localhost:3000/**) - Still ignored
The Problem: - Cannot dynamically control redirect URLs from API - Must manually edit template when switching local/production - {{ .ConfirmationURL }} variable also doesn't respect API parameter
Questions: 1. Is this a known limitation or bug? 2. Is there a working way to pass dynamic redirect URLs? 3. What's the recommended approach for multi-environment setups?
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.