Skip to content

redirectTo prop is used for both email magic link and Google auth #263

@Fashizel

Description

@Fashizel

Seems like the 'redirectTo' is used to fill the redirect url for both email magic link and Google auth (or any other auth for that matter) which seems like a bug.

In my NextJs application I need the redirect to go to a confirm route which needs to verify the OTP while the google auth redirect need to exchange the code to exchange the code for session, which means different redirect url

To Reproduce

Use supabase auth ui with both email magic link and google

Expected behavior

Allow to use different redirect urls depends on the login method used.

System information

NextJS application

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions