isAuthTokenValid method

  1. @override
Future<bool> isAuthTokenValid(
  1. String authToken
)
override

Implementation

@override
Future<bool> isAuthTokenValid(String authToken) async {
  try {
    final isValid = await methodChannel
        .invokeMethod<bool>('isAuthTokenValid', {'authToken': authToken});
    return isValid == true;
  } catch (e) {
    throw PassageError.fromObject(object: e);
  }
}