getConfiguration static method
Get the provider configuration (i.e. a compact representation, NOT the full MSAL configuration).
Returns a Future containing a B2CConfiguration
object or null
if
the provider is not configured yet.
See also:
B2CConfiguration
Implementation
static Future<B2CConfiguration?> getConfiguration() async {
print("[AzureB2C] [getConfiguration] invoked...");
var rawRes = await _channel.invokeMethod('getConfiguration');
if (rawRes != null) {
final Map<String, dynamic>? res = json.decode(rawRes);
print("[AzureB2C] [getConfiguration] data: $res");
return B2CConfiguration.fromJson(res!);
} else
return null;
}