---
title: previousFailureCount
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/urlauthenticationchallenge/previousfailurecount
---

# previousFailureCount

The receiver’s count of failed authentication attempts.

## Declaration

```swift
var previousFailureCount: Int { get }
```

## Discussion

Discussion The previous failure count includes failures from all protection spaces, not just the current one.

## See Also

### Getting properties of previous authentication attempts

- [failureResponse](foundation/urlauthenticationchallenge/failureresponse.md)
- [proposedCredential](foundation/urlauthenticationchallenge/proposedcredential.md)
