isAuthError property

bool get isAuthError

Check if exception is due to authentication issues

Implementation

bool get isAuthError =>
    type == ApiExceptionType.unauthorized ||
    type == ApiExceptionType.forbidden;