leerob / next-saas-starter

Get started quickly with Next.js, Postgres, Stripe, and shadcn/ui.
https://next-saas-start.vercel.app
MIT License
5.64k stars 644 forks source link

Forgot password flow #12

Open TimMikeladze opened 2 months ago

TimMikeladze commented 2 months ago

At the moment it's not possible to reset a forgotten password.

I suggest a basic reset password flow by sending the user a password reset link to their email.

Maybe using resend? But should be easily swappable with other email libraries.

leerob commented 2 months ago

💯 I am thinking we'd use Resend and react-email for both this, as well as the team invite flow.

https://github.com/leerob/next-saas-starter/blob/afff269d7ad8d6b90f5bf2c50dbf15b2ebc285d6/app/(login)/actions.ts#L417-L420 https://github.com/resend/react-email/tree/main/examples/resend

MJomaa commented 2 months ago

@leerob Yes please! react-email is also very easy, I can add it to the repo.

My favorite is the Vercel theme:

atikkk commented 2 months ago

hey @leerob can you please help me in local setup?

jonkurtis commented 2 months ago

hey @leerob can you please help me in local setup?

where are you getting stuck? The PR I made might be helpful. https://github.com/leerob/next-saas-starter/pull/14

samueltesfayegari commented 2 months ago

hey @leerob can you please help me in local setup?

Yes tutorial Video missing 🙌