Skip to content

authmagic/authmagic-email-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Plugin for authmagic-timerange-stateless-core to send authorization links on email

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published