> For the complete documentation index, see [llms.txt](https://hyperid.gitbook.io/hyperid-dev-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hyperid.gitbook.io/hyperid-dev-docs/documentation/access-tokens-and-refresh-tokens.md).

# Access Tokens and Refresh Tokens

Explore the use of access tokens and refresh tokens in the HyperID authentication system and how they are structured

### **What are Access Tokens and Refresh Tokens?**

Access and refresh tokens are fundamental components of the HyperID authentication system and play a critical role in ensuring secure and seamless user interactions.

Access tokens are short-lived tokens that grant access to specific resources or actions on behalf of a user. In contrast, refresh tokens are long-lived tokens used to obtain new access tokens without requiring the user to re-authenticate.

### **The Purpose of Access Tokens and Refresh Tokens**

Access tokens serve as the keys that unlock access to user-specific resources or perform actions on their behalf. These tokens are time-limited, which increses security by minimizing the exposure of sensitive data.

Refresh tokens, on the other hand, enable continuous interaction without frequent user logins. When an access token expires, a refresh token can be used to request a new one, ensuring uninterrupted service while maintaining security.

### In This Chapter

In the following sections of this chapter, you will learn how to [obtain](/hyperid-dev-docs/documentation/access-tokens-and-refresh-tokens/token-retrieval.md), [validate](/hyperid-dev-docs/documentation/access-tokens-and-refresh-tokens/token-validation.md), [re-issue](/hyperid-dev-docs/documentation/access-tokens-and-refresh-tokens/token-reissue.md), and [revoke ](/hyperid-dev-docs/documentation/access-tokens-and-refresh-tokens/token-revocation-and-logging-out.md)tokens. Additionally, we will provide an in-depth exploration of their intricate [structure](/hyperid-dev-docs/documentation/access-tokens-and-refresh-tokens/token-structure.md) to ensure you have a comprehensive understanding of access and refresh tokens in the HyperID authentication system.

At the end of each section, you'll discover practical code samples that illustrate these concepts in action.
