---
title: "Discussion on \"Access vs Refresh Tokens: I Was Missing Two Ideas\n\" | Hashnode"
description: "Discussion on \"Access vs Refresh Tokens: I Was Missing Two Ideas\n\". Years ago I was building a login API, and a colleague looked at what I was returning and asked why I only had one token. He said the newer APIs hand back two, an access token and a refresh token. Mine"
url: "https://hashnode.com/posts/access-vs-refresh-tokens-i-was-missing-two-ideas/6a54ee115ef4ad3035669163"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Access vs Refresh Tokens: I Was Missing Two Ideas](https://abdullahsaad5.hashnode.dev/access-vs-refresh-tokens-i-was-missing-two-ideas?utm_source=hashnode&utm_medium=feed)

Years ago I was building a login API, and a colleague looked at what I was returning and asked why I only had one token. He said the newer APIs hand back two, an access token and a refresh token. Mine

Jul 13 · 9 min read · abdullahsaad5.hashnode.dev  
Read the article

-   [#jwt](https://hashnode.com/tag/jwt)
-   [#authentication](https://hashnode.com/tag/authentication)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#security](https://hashnode.com/tag/security)
-   [#architecture](https://hashnode.com/tag/architecture)

## Written by

[Syed Abdullah Saad](https://hashnode.com/@abdullahsaad5)

@abdullahsaad5 · Islamabad, Pakistan

  
[View profile](https://hashnode.com/@abdullahsaad5)

I build AI agents that do real work, not demos. Full-stack (MERN, Next.js) + LLM tooling. Here I write up the hard parts: identity, safety,

I build AI agents that do real work, not demos. Full-stack (MERN, Next.js) + LLM tooling. Here I write up the hard parts: identity, safety, action-selection at scale.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
