How can i get a unique user identifier of JWT tokens in Express.js? The user was authenticated previously with Auth0. I need a unique user identifier for creating a CouchDB instance for this user.
Any suggestions?
How can i get a unique user identifier of JWT tokens in Express.js? The user was authenticated previously with Auth0. I need a unique user identifier for creating a CouchDB instance for this user.
Any suggestions?
Usually the user id of the authenticated user corresponds to the subject claim (sub) of your JWT token. This is probably what you're looking for.