---
title: "verifyRemoteServerTrust(for:)"
framework: Foveated Streaming
role: symbol
role_heading: Instance Method
platforms: [visionOS 27.0+]
path: "foveatedstreaming/foveatedstreamingprovidercontext/verifyremoteservertrust(for:)"
---

# verifyRemoteServerTrust(for:)

Verifies the server certificate presented in a TLS authentication challenge.

## Declaration

```swift
@MainActor final func verifyRemoteServerTrust(for challenge: URLAuthenticationChallenge) async -> Bool
```

## Parameters

- `challenge`: The authentication challenge to verify.

## Return Value

Return Value true if the server is trusted; false otherwise.

## Discussion

Discussion Streaming provider extensions are responsible for calling this method when handling authentication challenges from URLSession (or equivalent) for remote streaming endpoints, to validate the server’s certificate before completing the connection.
