wrobins / cordova-plugin-msal

Use the newest Microsoft MSAL library in your Cordova-based project!
Apache License 2.0
23 stars 63 forks source link

Fix JSON arrays being handled incorrectly on Android #96

Closed fordkilleen closed 1 year ago

fordkilleen commented 2 years ago

We discovered that on Android the JSON arrays were not coming down as such, and instead were incorrectly coming down as strings. This small change ensures that the arrays are not turned into strings. Specifically, this helps with claims such as emails which should be returning an array of email addresses. iOS was displaying the correct behaviour but Android was doing something different. Hope you don't mind the PR as I think this will help others and keep the claim values consistent between platforms. If you have any questions or issues with this let me know 💪