---
title: "Comment by Priyanshu Raj on \"Guide to Authentication with Access and Refresh Tokens in React/Next.js\" | Hashnode"
description: "Is it possible to access a JWT token stored in an HttpOnly cookie using Nookies? If the API base path and browser base path are the same, the HttpOnly cookie is"
url: "https://hashnode.com/posts/guide-to-authentication-with-access-and-refresh-tokens-in-reactnextjs/675c11f06458f516d0556c7b/comment/675ed8ca12a63a4479ed2efc"
---

[Discussion](https://hashnode.com/posts/guide-to-authentication-with-access-and-refresh-tokens-in-reactnextjs/675c11f06458f516d0556c7b)

Comment [Guide to Authentication with Access and Refresh Tokens in React/Next.js](https://hashnode.com/posts/guide-to-authentication-with-access-and-refresh-tokens-in-reactnextjs/675c11f06458f516d0556c7b)

[Priyanshu Raj](https://hashnode.com/@priyanshu-raj)

[Dec 15, 2024](https://hashnode.com/posts/guide-to-authentication-with-access-and-refresh-tokens-in-reactnextjs/675c11f06458f516d0556c7b/comment/675ed8ca12a63a4479ed2efc)

Is it possible to access a JWT token stored in an HttpOnly cookie using Nookies?

If the API base path and browser base path are the same, the HttpOnly cookie is automatically included in the request headers. In such a case, is it more secure to avoid explicitly passing the token in the Authorization header?
