@@ -60,9 +60,9 @@ export const ClientConfigurationErrorMessage = {
60
60
code : "pkce_params_missing" ,
61
61
desc : "Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request"
62
62
} ,
63
- b2cKnownAuthoritiesNotSet : {
64
- code : "b2c_known_authorities_not_set " ,
65
- desc : "Must set known authorities when validateAuthority is set to True and using B2C "
63
+ knownAuthoritiesAndInstanceMetadata : {
64
+ code : "invalid_known_authorities " ,
65
+ desc : "knownAuthorities and instanceMetadata cannot both be provided. Please provide instanceMetadata object for AAD, knownAuthorities otherwise. "
66
66
} ,
67
67
untrustedAuthority : {
68
68
code : "untrusted_authority" ,
@@ -199,11 +199,11 @@ export class ClientConfigurationError extends ClientAuthError {
199
199
}
200
200
201
201
/**
202
- * Throws an error when the user passes B2C authority and does not set knownAuthorities
202
+ * Throws an error when the user passes both knownAuthorities and instanceMetadata
203
203
*/
204
- static createKnownAuthoritiesNotSetError ( ) : ClientConfigurationError {
205
- return new ClientConfigurationError ( ClientConfigurationErrorMessage . b2cKnownAuthoritiesNotSet . code ,
206
- ClientConfigurationErrorMessage . b2cKnownAuthoritiesNotSet . desc ) ;
204
+ static createKnownAuthoritiesInstanceMetadataError ( ) : ClientConfigurationError {
205
+ return new ClientConfigurationError ( ClientConfigurationErrorMessage . knownAuthoritiesAndInstanceMetadata . code ,
206
+ ClientConfigurationErrorMessage . knownAuthoritiesAndInstanceMetadata . desc ) ;
207
207
}
208
208
209
209
/**
0 commit comments