logout method

  1. @override
Future<void> logout()
override

Logout user from Microsoft account.

Implementation

@override
Future<void> logout() async {
  await _ErrorHandler.guard(() async {
    if (Platform.isAndroid) {
      await methodChannel.invokeMethod('loadAccounts');
    }
    await methodChannel.invokeMethod('logout', <String, dynamic>{});
  });
}