leerob / next-saas-starter

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

Forgot password flow #12

Open TimMikeladze opened 1 month ago

TimMikeladze commented 1 month 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 1 month 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 1 month 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 1 month ago

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

jonkurtis commented 1 month 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 1 month ago

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

Yes tutorial Video missing 🙌