I am trying to achieve something similar but I am always getting some error related to JSON. I tried using the code from microsoft doc aswell as the code you guys are using.
Help me troubleshoot what could be the issue and how do I create a policy for lifetime token for a specific app in entra.enter image description here