Home

Token Authentication

Token authentication works by issuing a signed credential after a successful login or authorization step. That token is then included with subsequent requests to prove the sender is who they say they are. The server validates the token rather than checking a password each time, which is more efficient and reduces the exposure of credentials in transit.

The most common implementation is a JSON Web Token (JWT), which encodes identity and permission information in a compact, verifiable format. Tokens carry an expiry time, so they cannot be used indefinitely. When a token expires, the user must reauthenticate or use a refresh token to obtain a new one.

Tokens are also used for API access. When one system needs to interact with another on behalf of a user or application, it presents a token rather than a username and password. This makes it possible to grant specific, limited access to external systems without sharing full account credentials.