authmagic-email-plugin

0.0.6 • Public • Published

authmagic-email-plugin

Plugin for authmagic to send authorization links on email. It works with authmagic-timerange-stateless-core.

Params:

isTest - boolean flag that shows if plugin is executing in the test mode. If so then email will not be sent, but you could see the email in the console

mailer - object for configuring nodemailer

from - name of the sender

subject - subject of the email

Installation

Check authmagic-cli.

authmagic install authmagic-email-plugin

How to edit template

In your folder with authentication service find static/authmagic-email-plugin folder. There you will see 2 files: template.html and nohtml-template.html. nunjucks is used as templating engine.

Magic link

To check the identity of the user it is possible to send to his email, phone or any other resource he owns an authorization link. By clicking on that link user identifies himself as an owner of the resource. You can see many apps who suggest this option, for example medium.com and auth0.com.

How it looks in the real world:

Licence

authmagic-email-plugin is MIT licensed.

Package Sidebar

Install

npm i authmagic-email-plugin

Weekly Downloads

0

Version

0.0.6

License

MIT

Unpacked Size

5.76 kB

Total Files

7

Last publish

Collaborators

  • dev.weblab-technology
  • oleksandrknyga
  • maxx-nomad