Skip to content

coding-in-the-wild/just-login-debouncer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

just-login-debouncer

Build Status

example

var justLoginCore = require('just-login-core')
var justLoginDebouncer = require('just-login-debouncer')
var Level = require('level-mem')

var core = justLoginCore(new Level())
justLoginDebouncer(core)

api

var justLoginDebouncer = require('just-login-debouncer')

justLoginDebouncer(core)

Takes a core created by the just-login-core.

Wraps core.beginAuthentication() with a debounce function for the session id and the email address.

If one session id tries to send emails to multiple email addresses in quick succession, this will ignore the repeats during a certain time period after the first is allowed. The time is extended after each email is sent, but is reduced after a while.

If multiple session ids try to send emails to one email address is quick succession, this will ignore the repeats during a certain time period after the first is allowed. The time is extended after each email is sent, but is reduced after a while.

install

With npm do:

npm install just-login-debouncer

license

VOL

About

Debounce addon for the just-login suite.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published