Skip to content

signInWithEmail() functionaility doesnt redirectTo when used in <Auth/> component #16

@escapingSamsara

Description

@escapingSamsara

Bug report

Describe the bug

The bug/issue I am currently facing is, that the Auth component i use for login and signup doesnt redirect the user after sign-in with email/password.
Oddly enough, if i enter the wanted query string into the address bar after sign-in, the user appears to be signed in because i can access his profile

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Go to 'https://supabase.com/docs/guides/getting-started/tutorials/with-sveltekit'
  2. Follow the description and end up with the finished working Auth example.
  3. Change:
    view="magic_link"
    redirectTo={${data.url}/auth/callback}
    showLinks={false}
    For:
    view="sign_in"
    redirectTo={${data.url}/auth/callback}
    showLinks={true}
  4. Sign into the account using email and password (after sign-up)

Expected behavior

The behavior that should be expected should include a redirect to the given redirectTo value above after clicking the sign-in button.
But nothing happens

Screenshots

not needed to understand the issue

System information

  • OS: Linux Manjaro LTS
  • Browser: firefox
  • Version of supabase-js: [latest
  • Version of Node.js: [latest]

Additional context

magic_link login, as well as login via socials (when added like described in the supabase docs), works and redirects perfectly fine

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