I am getting a azure token and to verify I was checking the kid in header by decoding this token from jwt.io and then I hardcoded the kid in my code for future tokens.
Now, after some days the public keys has been changed and the previous kid which I stored in my code is outdated and not matching from the https://login.microsoftonline.com/common/discovery/keys.
Can any one help how can I add the kid in my code to verify the token or if I can decode the header of the token directly and verify the kid from https://login.microsoftonline.com/common/discovery/keys.