Below post explain how to validate JWT issued by Azure AD in java script:
You have to pay attention to the aud claim and properly check the signature.
Hope this helps!
Hi, I am authenticating the user of my SPA application, I followed:
I received the token, but I would like to verify in java, if this token is the right one, but I am not finding how I can do this, any help on how I can verify the backend with this token