I’m moving our App from React to Next.js, everything worked fine with the React SDK. But now, using the Next.js SDK I’m not able to get a valid JWT, just getting an opaque token…
I’m trying to find a way to set the Audience during Login to get a valid JWT, like I did in React, but can’t find how to do that.
I was finally able to get a valid JWT token by passing manually the audience to in the AuthorizationParams.
But now I have another issue… This JWT is NOT recognized as a valid token by my Flask Server.
It was working perfectly well (and still works) with my React Client. The setup is the same, same audience etc… when I look inside the JWT token with jwt.io I find the same informations…
But for some reason the Token received in my Next.js app isn’t accepted by my server while the token received in my React App is accepted.