I am having a FE application that generates JWT token using Auth0. This token is then sent to my BE API. I am curious how to make sure that the token sent to my API was created by my FE application. I know I can check the aud
claim, but AFAIK any application can set up any audience
Auth0 just checks whether such API exists. So anyone in my organization can just fake the audience
:(.
I was thinking about checking the azp
claim, however, there does not seem to be support for this in the jsonwebtoken
library.
Am I missing something?
Thanks