0

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?

Manuel Taber
  • 427
  • 5
  • 19

1 Answers1

1

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.

dmunch
  • 384
  • 2
  • 5