supabase-community / auth-ui

Pre-built Auth UI for React
https://supabase.com/docs/guides/auth/auth-helpers/auth-ui
MIT License
478 stars 120 forks source link

Default forgot password screen has text to ask for logging in #191

Closed YousefED closed 1 year ago

YousefED commented 1 year ago

I get this when using the React component:

image

I think it's quite weird to prompt for Already have an account? Sign in. Of course the user already has an account when trying to recover their password. wdyt?

silentworks commented 1 year ago

This isn't a bug as you can turn this off if you wish by passing the showLinks props and setting it to false.

YousefED commented 1 year ago

Imo its still a bug, because I think the default behavior doesnt make sense. The fact that you can turn it off doesn’t change that, right?

YousefED commented 10 months ago

Also, when I use the library to display the "forgot password" link, I use:

<Auth
            magicLink={true}
            supabaseClient={(sessionStore as SupabaseSessionStore).supabase}
            view="sign_in"
            appearance={{ theme: ThemeSupa }}
            redirectTo={redirectTo}
            providers={["google", "github"]}
          />

However, afaik I can't detect when the user selects "Forgot password" after this. So there's no way for me to set showLinks={false} for only the forgot password page, right @silentworks ?