Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.
This repository was archived by the owner on Jan 23, 2026. It is now read-only.

Confusion on gotrue.js working with redirectTo option for magiclink. #321

@GaryAustin1

Description

@GaryAustin1

Bug report

This is more clarification is needed and then possibly a document change.

Back in March based on these #253 , supabase/supabase#5663 (comment)

Implies that gotrue.js can no longer use redirectTo for signIn with magiclink (email only, no password).

Several users in the forums believe it still works, others run into an issue and stop based on the docs.

It seems to still work.

To Reproduce

Setup signIn with email only and no password, redirectTo set to a subpage in website. Website URL set to base and approved redirects set to include the entire URL with subpage.
Login and and email is sent with a redirect_to option in the url and does redirect to that subpage in the app...

https://ugccqxxxxxxxxxypbq.supabase.co/auth/v1/verify?token=bF3ZHLRPV9cr9kXWI_NJyQ&type=magiclink&redirect_to=http://mysite.us/page is the URL in the email...

Expected behavior

If redirectTo is still supported for magiclink Docs need to be updated to reflect that.

Screenshots

image

image

This user did more specific testing already:

supabase/supabase#5663 (comment)
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocumentationImprovements or additions to documentation

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions