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
  • 417
  • 4
  • 18

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
  • 374
  • 2
  • 5