---
title: "RAJAT (@0xRajat) | Hashnode"
description: "I am an Artist🧑‍💻. Read the latest articles by RAJAT on Hashnode."
url: "https://hashnode.com/@0xRajat"
---

@0xRajat

# RAJAT

@0xRajat · Joined January 2025

I am an Artist🧑‍💻

## Comments

[If refresh token is stolen then the malicious user can access the real user's session (untill it is expired) and may generate a new token. Hackers may use techniques like session hijacking, XSS, or CSRF(cross-site request forgery) to get the token. http-only cookies allow us to store sensitive data such as refresh tokens, in a way that cannot be accessed by JavaScript. This means that even if there are vulnerabilities in your code or third-party libraries, a hacker won't be able to retrieve the refresh token.](https://hashnode.com/posts/jwt-and-oauth-explained/676e65e43bb4b435f611e16c/comment/678f7af061e7920fb670efad#reply-679854c2e732cc8047fc707d)

Reply · Article · Jan 28, 2025 · [JWT and OAuth explained](https://hashnode.com/posts/jwt-and-oauth-explained/676e65e43bb4b435f611e16c)
