passport-ses
Password-less authentication strategy using AWS SES.
Install
$ npm install passport-ses
Usage
Configure Strategy
The SES strategy authenticates users by sending them an email containing a temporary token.
var SESStrategy = Strategy; passport
Authenticate Requests
app
Token Store API
The strategy expects a token store that has the following API model:
Token value: String email: String timestamp: Date Boolean {} {} TokenStore {} {}
The default token storage method is an in-memory object, so restarting the server will delete any saved tokens.