Unable to specify Supabase magiclink redirect_to url

  • jonathanfors-1347526760224260167

    Jonathan Fors

    8 days ago

    Basically I've got a request to /auth/v1/magiclink containing redirect_to in the body along with the email, however when clicking the email link it does not redirect to the specified url.

    I've been doing some tests and it seems it is defaulting to the url where the request was made from, e.g. if I fill in the sign in form and make the request on myapp .com/login then I am redirected to myapp .com/login and if I do it from myapp .com/another-url i am then redirected to that url.

    Anyone able to help with this? For now I've hard-coded the redirect url into my supabase email templates, which works I guess but isn't ideal.
    1347526760433979523-CleanShot_2025-03-07_at_11.09.542x.png
  • benjamin.h-1347577796016341094

    Ben H

    8 days ago

    Do you have the redirect url in your Supabase list of allowed redirect urls (in the Supabase dashboard)?
  • jonathanfors-1347593932380442714

    Jonathan Fors

    8 days ago

    Yeah it’s in there. And I’ve confirmed the formatting is correct because otherwise it also wouldn’t allow me to redirect even now when it’s hard coded into the email template

Stop scrolling. Start building.

toddle is a visual web app builder that rivals custom code — but accessible to your entire team!

Try toddle — it's free!

© Copyright 2024 toddle. All rights reserved.