Contents

decideAuthenticationChallengeDisposition(for:)

Determines the response to an authentication challenge.

Declaration

@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.