checkAuthAvailable method

Future<void> checkAuthAvailable(
  1. String accessToken,
  2. String jwtToken,
  3. dynamic success(
    1. dynamic ststus
    ),
  4. dynamic error(
    1. dynamic ststus
    ),
)

调用之前先去用户服务端获取accessToken和jwtToken

Implementation

Future<void> checkAuthAvailable(String accessToken, String jwtToken,
    Function(dynamic ststus) success, Function(dynamic ststus) error) async {
  PhoneNumberServer().checkAuthAvailable(Params(
    accessToken: accessToken,
    jwtToken: jwtToken,
    success: allowInterop(success),
    error: allowInterop(error),
  ));
}