auth0-userfromtoken
v0.0.2
Published
Simple little module to verify an RS256 token issued by Auth0.
Downloads
61
Readme
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.