Refresh Token with Next JS and Apollo client

I am using Apollo Client With Next JS
User Login Mutation is on Client Side , and i am saving auth token in cookies,

I am getting refresh token in response headers of apollo Client.

Questions

  1. How can i read response header in apollo client during query and mutation on server and client side.
  2. How can i update cookies when i get refresh token in response header on both client and server side.