Next.js invalid token using middleware, which token to use?

Hey there @claim727 !

You should be using the access token against your backend API - Can you confirm the audience of the access token matches that of the API identifier of your API as defined in your Auth0 dashboard? Is your API middleware checking for scopes or anything else or just verifying the access token? A missing audience is a misstep here:

Let us know if this is not the case!