Neolithic Populous Metropolis
Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

passwordless-mailgun-delivery

1.0.0 • Public • Published

Passwordless-Mailgun-Delivery

A delivery strategy, for use with Passwordless, that uses Mailgun to deliver tokens via email.

Installation

npm install passwordless-mailgun-delivery --save

Usage example

var mailgunDelivery = require( 'passwordless-mailgun-delivery' );
 
// Pass the below object to passwordless.addDelivery()
mailgunDelivery( {
apiKey: "...",
// Your Mailgun API key
html: "<a href=\"verification_url\">Verify</a>",
// The HTML to send in the body of the message. The string "verification_url" will be replaced with the url below
sender: "Do Not Reply <donotreply@example.com>",
// The email address to send from. This address must end in a domain you have registered with Mailgun
text: "verification_url",
// The text to send in the body of the message. The string "verification_url" will be replaced with the url below
url: "https://www..."
// The url used to validate the user
} )

Release History

  • 1.0.0
    • Initial release

Donate

If you enjoy using this module, please consider donating to support summer camps for the visually impaired.

campbowen.ca/donate/

Distributed under the AGPL 3.0 license.

install

npm i passwordless-mailgun-delivery

Downloadsweekly downloads

1

version

1.0.0

license

AGPL-3.0

last publish

collaborators

  • avatar
Report a vulnerability