unAuthorize method

Future<bool> unAuthorize()

Implementation

Future<bool> unAuthorize() async {
  final deleteJwtResult = await _storage.delete(RestApiClientKeys.jwt);
  final deleteRefreshTokenResult =
      await _storage.delete(RestApiClientKeys.refreshToken);

  dio.options.headers.remove(RestApiClientKeys.authorization);

  return deleteJwtResult && deleteRefreshTokenResult;
}