<commit_before>---
public: false
budicon: 640
image: "/media/landings/rtokens-security-considerations/rtokens-security-considerations.png"
imageAlt: "It is important to keep Refresh Tokens secure"
imagePosition: "center"
color: "#4E92DF"
title: "Security Considerations"
---
**Refresh Tokens** are long-lived. This means when a client gets one from a server, this token must be stored securely to keep it from being used by potential attackers. If a **Refresh Token** is leaked, it may be used to obtain new **Access Tokens** (and access protected resources) until it is either blacklisted or it expires (which may take a long time). **Refresh Tokens** must be issued to a single authenticated client to prevent use of leaked tokens by other parties. **Access Tokens** must also be kept secret, but due to its shorter life, security considerations are less critical.<commit_msg>[update] added feedback by sandrino<commit_after>---
public: false
budicon: 640
image: "/media/landings/rtokens-security-considerations/rtokens-security-considerations.png"
imageAlt: "It is important to keep Refresh Tokens secure"
imagePosition: "center"
color: "#4E92DF"
title: "Security Considerations"
---
**Refresh Tokens** are long-lived. This means when a client gets one from a server, this token must be stored securely to keep it from being used by potential attackers, for this reason it is not safe to store them in the browser. If a **Refresh Token** is leaked, it may be used to obtain new **Access Tokens** (and access protected resources) until it is either blacklisted or it expires (which may take a long time). **Refresh Tokens** must be issued to a single authenticated client to prevent use of leaked tokens by other parties. **Access Tokens** must also be kept secret, but due to its shorter life, security considerations are less critical.
{'fraction_non_alphanumeric': 0.07775965198477433, 'fraction_numerical': 0.0065252854812398045, 'mean_word_length': 5.052631578947368, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3395829', 'n_tokens_mistral': 488, 'n_tokens_neox': 458, 'n_words': 260}