0.0.2 • Published 5 years ago

auth0-userfromtoken v0.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

auth0-userfromtoken

Simple little module to verify an RS256 token issued by Auth0.

usage

import verify from 'auth0-userfromtoken'

verify(token, AUTH0_CLIENT_DOMAIN)
  .then(user => {
    // do stuff with user here
  })

where AUTH0_CLIENT_DOMAIN is your Auth0 domain, and token is a token coming in from client.