Thanks Andrew. I can also repro this on the v2.0 code flow. Investigating now.
An error occurred while saving the commentVladislav commented
Any new input on this? We are trying to integrate with IFTTT, who are strictly following the standard which leads to the fact that their validation fails, becayse "expires_in" is returned as string from Azure.