Cheryl Mcherylm.hashnode.dev·Sep 27, 2024Handling Refresh Token with Next.js, Auth.js (next-auth v5) Credentials Provider, and HTTPOnly CookieI worked on a Next.js app that connects to a NestJS backend for authentication using an access token and a refresh token stored as HttpOnly Cookie. The main challenge is that cookies are read-only in server components; they can only be used in server...Discuss·62 readsnext-auth-v5