---
title: "Comment by Hoàng Nguyễn Huy on \"Handling Refresh Token with Next.js, Auth.js (next-auth v5) Credentials Provider, and HTTPOnly Cookie\" | Hashnode"
description: "Thanks for sharing. But I have a question? For example, I have a getting data function in a server component (await get...), so when I request from browser and"
url: "https://hashnode.com/posts/handling-refresh-token-with-nextjs-authjs-next-auth-v5-credentials-provider-and-httponly-cookie/66f7425943dc61dba90f29b2/comment/6936ebbcd8938218c048e2c7"
---

[Discussion](https://hashnode.com/posts/handling-refresh-token-with-nextjs-authjs-next-auth-v5-credentials-provider-and-httponly-cookie/66f7425943dc61dba90f29b2)

Comment [Handling Refresh Token with Next.js, Auth.js (next-auth v5) Credentials Provider, and HTTPOnly Cookie](https://hashnode.com/posts/handling-refresh-token-with-nextjs-authjs-next-auth-v5-credentials-provider-and-httponly-cookie/66f7425943dc61dba90f29b2)

[Hoàng Nguyễn Huy](https://hashnode.com/@huyhoang2412)

[Dec 8, 2025](https://hashnode.com/posts/handling-refresh-token-with-nextjs-authjs-next-auth-v5-credentials-provider-and-httponly-cookie/66f7425943dc61dba90f29b2/comment/6936ebbcd8938218c048e2c7)

Thanks for sharing. But I have a question? For example, I have a getting data function in a server component (await get...), so when I request from browser and access token is expired, how can I refresh token. It's mean, in this case, we do not use the server action or route handle
