endSession method

  1. @override
Future<bool> endSession(
  1. IAMPASSAuthenticationSession session
)
override

Implementation

@override
Future<bool> endSession(IAMPASSAuthenticationSession session) async {
  String encodedSession = jsonEncode(session.toJson());
  Map<String, String> args = {"session": encodedSession};

  final result = await methodChannel.invokeMethod<bool>('EndSession', args);
  return result ?? false;
}