'How do I check my authorization code in authorization code flow?

I am using ADB2C and MSAL to create an authentication function. And ,Authorization code flow is used. I know how to check the contents of the token, but I don't know how to check the contents of the authorization code. Please tell me.



Solution 1:[1]

You can not decode the authrization code.

When you perform the Authorization Code Grant workflow, the Code response you get back from authorization server is not intended to be decoded as a JWT token. That code can only be exchanged for an Access Token. It has no other purpose

You can refer this document for why we use auth codes to reduce the risk of an attacker.

Reference : Decode JWT token received from Authorization Code

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Nick stands with Ukraine