isTokenExpired method

  1. @override
Future isTokenExpired({
  1. required MethodCall call,
})
override

Implementation

@override
Future isTokenExpired({required MethodCall call}) async{
  final isTokenExpired = await _getModuleInstance().isTokenExpired();
  return {
    "success": true,
    "message": isTokenExpired ? "Token has expired" : "Token has not expired",
    "data": {
      "isTokenExpired": isTokenExpired
    }
  };
}