By submitting a PR to this repository, you agree to the terms within the Auth0 Code of Conduct. Please see the contributing guidelines for how to create and submit a high-quality PR for this repo.
Description
Keep the contract that the decode returns null on errors
➜ node
Welcome to Node.js v16.19.0.
Fix: Catch errors from JSON.parse
Type ".help" for more information.
> JSON.parse("xx")
Uncaught SyntaxError: Unexpected token x in JSON at position 0
>
Checklist
[ ] This change adds test coverage for new/changed/fixed functionality
[ ] I have added documentation for new/changed functionality in this PR or in auth0.com/docs
[ ] All active GitHub checks for tests, formatting, and security are passing
[ ] The correct base branch is being used, if not the default branch
By submitting a PR to this repository, you agree to the terms within the Auth0 Code of Conduct. Please see the contributing guidelines for how to create and submit a high-quality PR for this repo.
Description
Keep the contract that the decode returns null on errors
Checklist