How to Get an Access Token with a Different Audience During the Login - NextJS - Auth0
Last Updated:
Overview
This article clarifies whether there is a way to use getAccessToken to get an access token with a different audience than what was used on the original login.
Applies To
- Access Token
- NextJS - Auth0
- getAccessToken
Solution
One of our engineers has implemented a workaround for a similar requirement, available here.
However, please note that this code is just to be used as an example and should be tested thoroughly before being put into production.