November 2018
Intermediate to advanced
388 pages
9h 5m
English
The first part of the token is the header. This provides information, such as which algorithm is being used for signing the token, and the nature of the token. For example, consider the following code:
{ "alg": "HS256", "typ": "JWT"}
Note that the header is represented as a JSON object. Here, alg represents the algorithm used, and typ indicates the type of token. In this case, this is JWT. Different algorithms, such as HS256, HS384, RS256, and ES512 can be used to sign the token. The type is open for extensibility to support other token types in future.
Read now
Unlock full access