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

Subfields of authorities does not inherit from defaults #64

Closed orjandh closed 3 years ago

orjandh commented 3 years ago

The options parameter object has some default values, but if you pass an incomplete object to the authorities array, it will not inherit from the default values and will fail silently.

const options: any = { authorities: [ { type: 'B2C', authorityUrl: '<placeholder>' } ] };

The json provided above does not have the audience entry, I would expect this to be filled automatically.