auth0-userfromtoken

0.0.2 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i auth0-userfromtoken

Weekly Downloads

2

Version

0.0.2

License

MIT

Unpacked Size

2.15 kB

Total Files

3

Last publish

Collaborators

  • konsumer