Refreshing access token with axios
Handling SSR/SSG with react-query in Next.js
Dealing with the limitations of Next.js and SSR authentication