0.3.0 • Published 9 years ago

exhale v0.3.0

Weekly downloads
2
License
ISC
Repository
github
Last release
9 years ago

exhale

expiring token system for ephemeral tasks such as email verification and password reset

var exhale = require("exhale")(redisClientOrConfig)

basic usage

var obj = { type: "password_reset", payload: { account: "abc" }}

exhale.set(obj, function(errors, token){
  console.log(token)
  // returns...
  {
    uuid: "18b65620-ce44-47bc-81b7-c7a96d8e6516",
    type: "password_reset",
    payload: { account: "abc" }
  }
})

exhale.get("18b65620-ce44-47bc-81b7-c7a96d8e6516", function(token){
  console.log(token)
  // returns...
  {
    uuid: "18b65620-ce44-47bc-81b7-c7a96d8e6516",
    type: "password_reset",
    payload: { account: "abc" }
  }
})

exhale.del("18b65620-ce44-47bc-81b7-c7a96d8e6516", new Function)
0.3.0

9 years ago

0.2.0

9 years ago

0.1.0

9 years ago

0.0.0

9 years ago