If I use this token endpoint: /{tenant}/oauth2/token
I get "expires_in" as a string: "expires_in": "3599". I'm using my own tenant and app id in this case.
However, if I use this endpoint: /common/oauth2/v2.0/token
I get "expires_in" as an integer: "expires_in": 3599. I'm using the Postman Samples provided in the document in this case.
Why?
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@pablolaurin Thanks for the comment. We are actively investigating and will get back to you soon.
I found my mistake. It works as documented.
I'm using the V1 endpoint in the first case and the V2 endpoint in the second. The documentation for V1 shows examples with expires_in as string. For V2, expires-in is an integer.
phew Thanks for double checking @pablolaurin!