Auth0 NextJS get AccessToken without SSR

I was playing with the Auth0 NextJS Sample. It gives sessionToken instead of accessToken. In order to retrieve accessToken, I have to do something as follows:

import { getAccessToken } from '@auth0/nextjs-auth0';
const { accessToken } = await getAccessToken(req, res, {
      scopes: ['read:shows']
});

But the problem is the above code only runs in SSR. I am looking forward for a solution that works purely on CSR. Is there any workaround?