Generally, you’ll create access tokens for one of two reasons:
-
to refine the authentication credentials of your users
-
in-the-moment necessity
From time to time, you might need to view access token details for particular users (e.g., to discover how many groups a given user is assigned to). For this purpose, you can make use of JSON Web Tokens (JWTs), which allow you to generate, decode, and verify web tokens, as follows:
Equally handy is the JWT-CLI, which is “an npm CLI program for decoding JSON Web Tokens (JWTs) and the Unix timestamps within their bowels.”