Please show how if you know, but as far as I know there is no way to modify the JWT and pass the verification if you are using a .pem, are verifying the signature and audience.
This is how you can get the raw JWT in the SPA SDK:
const claims = await auth0.getIdTokenClaims();
const id_token = claims.__raw;