---
title: WebAuthenticationSession.BrowserSession
framework: authenticationservices
role: symbol
role_heading: Structure
path: authenticationservices/webauthenticationsession/browsersession
---

# WebAuthenticationSession.BrowserSession

Describes the preferred browser session behavior.

## Declaration

```swift
struct BrowserSession
```

## Topics

### Behaviors

- [ephemeral](authenticationservices/webauthenticationsession/browsersession/ephemeral.md)
- [shared](authenticationservices/webauthenticationsession/browsersession/shared.md)

## Relationships

### Conforms To

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Authenticating a session

- [authenticate(using:callback:preferredBrowserSession:additionalHeaderFields:)](authenticationservices/webauthenticationsession/authenticate(using:callback:preferredbrowsersession:additionalheaderfields:).md)
- [ASWebAuthenticationSession.Callback](authenticationservices/aswebauthenticationsession/callback.md)
