Reputation: 427
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?
Upvotes: 0
Views: 1707
Reputation: 394
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.
Upvotes: 2