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:
Looking at the Auth0 Next.JS SDK, there isn’t a specific sessionToken property, as you shared. The correct property to get an access token should be getAccessToken().
If you need to access the tokens from the client side, you could create an API route to generate the access token securely. Then, call the API route from the client side to get the access token.