auth0-userfromtoken

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

Usage no npm install needed!

<script type="module">
  import auth0Userfromtoken from 'https://cdn.skypack.dev/auth0-userfromtoken';
</script>

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.