Manuel Taber
Manuel Taber

Reputation: 427

Get unique user identifier of JWT tokens in Express.js

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

Answers (1)

dmunch
dmunch

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

Related Questions