acquireToken method

Future<MSALResult?> acquireToken(
  1. MSALInteractiveTokenParameters interactiveTokenParameters
)

Implementation

Future<MSALResult?> acquireToken(
    MSALInteractiveTokenParameters interactiveTokenParameters) async {
  try {
    final result = await _channel.invokeMethod(
        'acquireToken', interactiveTokenParameters.toMap());
    return result != null
        ? MSALResult.fromMap(Map<String, dynamic>.from(result))
        : null;
  } on PlatformException catch (e) {
    throw _convertException(e);
  }
}