I create a login page in Next.js that runs a GraphQL mutation to get a jwt token and refresh token. But because Next.js uses server rendering, I was not able to persist the user log in using localStorage. The recommended method for Next.js seems to be using cookies.