Upgrading Token authentication from node-auth0 v2.27

I have some old node-js code written against node-auth0 v2.27

var AuthenticationClient = require('auth0').AuthenticationClient;
var auth0 = new AuthenticationClient( { domain : domain, clientId : clientId } );
var userInfo = auth0.tokens.getInfo( token );

This validates a provided Bearer Token and then works with the user info.

I’m trying to upgrade this to the current node-auth0 v4.3.1 library. I can’t seem to find any public methods that replicate this functionality. The source code contains auth0/dist/esm/auth/id-token-validator.js but it is not exposed.

1 Like