Can anyone suggest what would be the best way to access tokens from httpOnly cookies? I'm using Next.js 12.x.x as the front end ( http://localhost:3000 ). My API server runs separately ( http://localhost:4000 ). Once login, the API server returns the JWT token. I am storing tokens in cookies - httpOnly. I am using Apollo client and hooks like useQuery . What I know is: httpOnly can't be read from the client side with JavaScript. If I make a...
Originally asked by débutant on Stack Exchange (stackoverflow) (CC BY-SA 4.0).