SupabaseS
Supabase2w ago
oli

Confirm SignUp VS Recovery link

Hi there,
I found a strange behavior where the recovery redirect url strips away certain parameters, while the sign up url keeps them.
I wanted to ask you if this is normal and how can I fix this, so my password recovery URL retains the parameters.

// SIGNUP
val url = "https://app.redacted.com/?a=recovery&source=mobile"

supabaseClient.auth.signUpWith(
    provider = Email,
    redirectUrl = url
) {
     email = input_email.value
     password = input_password.value
 }

// RECOVERY
val url = "https://app.redacted.com/?a=recovery&source=mobile"

supabaseClient.auth.resetPasswordForEmail(
     email = email.value,
     redirectUrl = url
)


However, in my inbox, I receive these URLs:
Signup:
https://xxx.supabase.co/auth/v1/verify?token=pkce_redacted&type=signup&redirect_to=https%3A%2F%2Fapp.redacted.com%2F%3Fa%3Dsignup%26source%3Dmobile

Recovery:
https://xxx.supabase.co/auth/v1/verify?token=pkce_redacted&type=recovery&redirect_to=https://app.redacted.com/

Notice how the RECOVERY flow strips away the source=mobile argument and our website consumes the PKCE key before it has a chance to return to the app.
I’ll be extremely thankful for any help!!

Oliver
Was this page helpful?