<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: -",
    "macOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WebPage/NavigationDeciding/decideAuthenticationChallengeDisposition(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "s:6WebKit0A4PageC18NavigationDecidingP40decideAuthenticationChallengeDisposition3forSo016NSURLSessionAuthhI0V_So15NSURLCredentialCSgtSo019NSURLAuthenticationH0C_tYaF"
  },
  "title" : "decideAuthenticationChallengeDisposition(for:)"
}
-->

# decideAuthenticationChallengeDisposition(for:)

Determines the response to an authentication challenge.

```
@MainActor mutating func decideAuthenticationChallengeDisposition(for challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?)
```

## Parameters

`challenge`

The authentication challenge.

## Return Value

The option to use to handle the challenge, and the credential to use for authentication when the disposition is `URLSession/AuthChallengeDisposition/useCredential`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)