OmegaHawkeye / kirimase

Build full-stack Next.js apps, incredibly fast
https://kirimase.dev
MIT License
6 stars 1 forks source link

Feature Request: Add Magic Link Option #47

Open OmegaHawkeye opened 2 months ago

OmegaHawkeye commented 2 months ago

From kirimase created by mcapodici: nicoalbanese/kirimase#64

I just manually added Magic Link to the scaffold that kirimase set up, and it was pretty easy! So I think it would be nice to have it as one of the built-in init options. It is particularly handy because when starting a project (or something I am just playing with) I don't want to go through and set up a custom OAuth on say Google.

Supporting it would be a case of adding this to route.ts:

import EmailProvider from "next-auth/providers/email";

...

    EmailProvider({
      server: process.env.EMAIL_SERVER,
      from: process.env.EMAIL_FROM
    }),

In addition adding to the .env file boilerplate, and adding a nodemailer dependency.

For local testing I would mention this handy util in the README:

docker run -p 3001:80 -p 2525:25 -d --name smtpdev rnwood/smtp4dev

Happy to make a PR if the idea is wanted.

OmegaHawkeye commented 2 months ago

Hey @mcapodici! Great idea and sorry for the delay getting this - let me know if you are still happy to make PR for this?