I'm struggling with calling my secure (secured by Auth0) backend API with the Auth0 Bearer token. I want to add the Bearer token to every request made to the API in my NextJs app. I can't find a solution for this anywhere
Method to retrieve accessToken
import { getAccessToken } from "@auth0/nextjs-auth0";
...
const { accessToken } = await getAccessToken(req, res, {
scope: "...",
});