---
title: "Discussion on \"Why can't we just use JWTs in Next.js?\" | Hashnode"
description: "Discussion on \"Why can't we just use JWTs in Next.js?\". In traditional React + Express apps, it's common to use JWTs (JSON Web Tokens) stored in localStorage for authentication. So when working with Next.js, it's natural to ask:\n\"Why can't I just use JWTs in Next.js like I do in React?\"\nThe short answer: ..."
url: "https://hashnode.com/posts/why-cant-we-just-use-jwts-in-nextjs/68503ce331d95a7bbb156915"
---

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

Discussion

# [Why can't we just use JWTs in Next.js?](https://garvitdadheech.hashnode.dev/why-cant-we-just-use-jwts-in-nextjs?utm_source=hashnode&utm_medium=feed)

In traditional React + Express apps, it's common to use JWTs (JSON Web Tokens) stored in localStorage for authentication. So when working with Next.js, it's natural to ask: "Why can't I just use JWTs in Next.js like I do in React?" The short answer: ...

Jun 16, 2025 · 3 min read · garvitdadheech.hashnode.dev  
Read the article

-   [#nextjs](https://hashnode.com/tag/nextjs)
-   [#jwt](https://hashnode.com/tag/jwt)
-   [#jwt-tokenjson-webtokentoken-authenticationaccess-tokenjson-tokenjwt-securityjwt-authenticationtoken-based-authenticationjwt-decodingjwt-implementation](https://hashnode.com/tag/jwt-tokenjson-webtokentoken-authenticationaccess-tokenjson-tokenjwt-securityjwt-authenticationtoken-based-authenticationjwt-decodingjwt-implementation)
-   [#server-side-rendering](https://hashnode.com/tag/server-side-rendering)

## Written by

[Garvit Dadheech](https://hashnode.com/@GarvitDadheech)

@GarvitDadheech · Bangalore, India

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

Tech Student who loves researching and writing insightful blogs

I am a Full Stack, DevOps, and Web3 Developer with expertise in building end-to-end applications. As a fast learner, I quickly adapt to different technology stacks, ensuring the delivery of robust software solutions. I specialize in creating scalable web applications tailored to meet client needs and drive innovation.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
