Reserved claims

Reserved claims are the ones defined by the JWT standard. They are:

  • iat: issued at the time
  • iss: issuer name
  • sub: subject text
  • aud: audience name
  • exp: expiration time

For example, the server, while generating a token, can set an exp claim in the payload. The client then uses that token to access API resources. The server validates the token each time. When the expiration time is passed, the server will no longer validate the token. The client needs to generate a new token by logging in again.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
52.14.82.217