loginWithMicrosoft method

  1. @override
Future<Map<Object?, Object?>?> loginWithMicrosoft({
  1. required String tenantId,
  2. required String clientId,
  3. String? clientSecret,
  4. required String redirectUrl,
  5. required String scope,
  6. String? tokenScope,
  7. String? nonce,
})
override

Implementation

@override
Future<Map<Object?, Object?>?> loginWithMicrosoft({
  required String tenantId,
  required String clientId,
  String? clientSecret,
  required String redirectUrl,
  required String scope,
  String? tokenScope,
  String? nonce,
}) async {
  final token = await methodChannel
      .invokeMethod<Map<Object?, Object?>?>('loginWithMicrosoft', {
        'tenantId': tenantId,
        'clientId': clientId,
        'clientSecret': ?clientSecret,
        'redirectUrl': redirectUrl,
        'scope': scope,
        'tokenScope': ?tokenScope,
        'nonce': ?nonce,
      });
  return token;
}