redwoodjs / playground-auth

This repo demonstrates all the authentication providers that Redwood supports
https://redwood-playground-auth.netlify.app/
MIT License
34 stars 25 forks source link

Support Supabase Sign in with Magiclink in Demo #57

Open dthyresson opened 3 years ago

dthyresson commented 3 years ago

Once PR https://github.com/redwoodjs/playground-auth/pull/45 is merged, the last Supabase auth feature to implement is the "passwordless" or "magiclink" styles where there signin is just an email

https://supabase.io/docs/reference/javascript/auth-signin#sign-in-with-magic-link

This would require either a way of pinking just to enter in the email or maybe a Password/Passwordless radio button on the form?

Open to ideas.

See:

https://github.com/redwoodjs/playground-auth/pull/19

and

https://github.com/redwoodjs/playground-auth/pull/45

lunchbreakdev commented 3 years ago

It seems like maybe a HeadlessUI switch might work best for toggling between the two

dthyresson commented 3 years ago

It seems like maybe a HeadlessUI switch might work best for toggling between the two

That could work well with the switch changing up the form and the buttons/actions.

Let's get PR #45 in first and then we can assign.

dthyresson commented 3 years ago

On the topic on HeadlessUI switch I just started watching: "Building Accessible Switch/Toggle Buttons with Headless UI React and Tailwind CSS"

https://twitter.com/tailwindcss/status/1384962794181775366

https://www.youtube.com/watch?v=3uzhz0Q_vUg