validate-memberstack-token

Validates Memberstack tokens

Usage no npm install needed!

<script type="module">
  import validateMemberstackToken from 'https://cdn.skypack.dev/validate-memberstack-token';
</script>

README

validate-memberstack-token

Usage

const validateToken = require(`validate-memberstack-token`)

...

try{
    const contents = await validateToken(token)
    console.log(`Token valid:`, contents)
}
catch(err){
    console.log(`Token not valid`)
    console.error(err)
}