authmagic-email-plugin
v0.0.6
Published
<img src="https://github.com/authmagic/authmagic/blob/master/docs/images/logo.png?raw=true" width="300px"/>
Downloads
8
Readme
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.