Hi Mohamed Adil
You are correct Microsoft Entra ID returns the expires_in
and ext_expires_in
fields as strings rather than JSON numbers in the /token
endpoint response.
Currently, there is no setting or configuration in either Microsoft Entra ID or Azure AD B2C that allows these fields to be returned as integers. This behavior is by design and is the default response format.
As of now, no update has been announced regarding changes to the token response format for expires_in
or ext_expires_in
.
However, a feature request has been submitted in the Azure Feedback Portal: Token response: Return expires_in
as a number We encourage you to upvote and leave a comment to help prioritize this request.
Hope this helps. Do let us know if you any further queries.
Please remember to "Accept Answer" if answer helped you. This will help us as well as others in the community who might be researching similar questions.