---
title: "Discussion on \"SWR Nextjs : Auto Rotate Refresh Token\" | Hashnode"
description: "Discussion on \"SWR Nextjs : Auto Rotate Refresh Token\". What stack that I use?\n    \"swr\": \"^2.2.5\",\n    \"next\": \"14.2.3\",\n\nProblem\nSPA (Single Page Application) are hard to identify user's session using JWT. In my case, I use JWT as token session that used for every interaction API.\nSolution\nWe can use on..."
url: "https://hashnode.com/posts/swr-nextjs-auto-rotate-refresh-token/668d0aaddd74a8f5b87b87c7"
---

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

Discussion

# [SWR Nextjs : Auto Rotate Refresh Token](https://rio-chandra.hashnode.dev/swr-nextjs-auto-rotate-refresh-token?utm_source=hashnode&utm_medium=feed)

What stack that I use? "swr": "^2.2.5", "next": "14.2.3", Problem SPA (Single Page Application) are hard to identify user's session using JWT. In my case, I use JWT as token session that used for every interaction API. Solution We can use on...

Jul 9, 2024 · 2 min read · rio-chandra.hashnode.dev  
Read the article

-   [#swr](https://hashnode.com/tag/swr)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#nextjs](https://hashnode.com/tag/nextjs)
-   [#authentication](https://hashnode.com/tag/authentication)
-   [#authorization](https://hashnode.com/tag/authorization)
-   [#coding](https://hashnode.com/tag/coding)

## Written by

[Rio Chandra](https://hashnode.com/@kenichi)

@kenichi · Indonesia

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

Software Developer

I am a Software Developer, solves complex problems while creating some of the most advanced applications in the industry. Provides mentorship and supervise developers. Has experience with Reactjs, VueJs, NestJs and other Framework.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
