---
title: "Discussion on \"Stop refreshing access tokens manually!!\" | Hashnode"
description: "Discussion on \"Stop refreshing access tokens manually!!\". Everyone knows the annoying process of detecting an expired access token -> refreshing it using your (hopefully) saved refresh token -> updating your access token to the new value.\nUsually, this ends up as a lot of repeated code wherever you use an a..."
url: "https://hashnode.com/posts/stop-refreshing-access-tokens-manually/61a4941c2be89f3d0ab9f64b"
---

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

Discussion

# [Stop refreshing access tokens manually!!](https://blog.matievisthekat.dev/stop-refreshing-access-tokens-manually?utm_source=hashnode&utm_medium=feed)

Everyone knows the annoying process of detecting an expired access token -> refreshing it using your (hopefully) saved refresh token -> updating your access token to the new value. Usually, this ends up as a lot of repeated code wherever you use an a...

Nov 29, 2021 · 7 min read · blog.matievisthekat.dev  
Read the article

-   [#authentication](https://hashnode.com/tag/authentication)
-   [#axios](https://hashnode.com/tag/axios)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[Matthew Stead](https://hashnode.com/@matievisthekat)

@matievisthekat · Cape Town, South Africa

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

Open Source Developer

i do things

## Responses 1

Markdown supported · ⌘↵ to post

[Catalin Pit](https://hashnode.com/@Catalinpit)

[Nov 29, 2021](https://hashnode.com/posts/stop-refreshing-access-tokens-manually/61a4941c2be89f3d0ab9f64b/comment/61a4a3842be89f3d0ab9f823)

A useful article and a really nice comparison between the two approaches!
