---
title: ASWebAuthenticationSessionError
framework: authenticationservices
role: symbol
role_heading: Structure
path: authenticationservices/aswebauthenticationsessionerror
---

# ASWebAuthenticationSessionError

Errors that a web authentication session can generate.

## Declaration

```swift
struct ASWebAuthenticationSessionError
```

## Topics

### Error Domain

- [ASWebAuthenticationSessionErrorDomain](authenticationservices/aswebauthenticationsessionerrordomain.md)

### Error Codes

- [canceledLogin](authenticationservices/aswebauthenticationsessionerror/canceledlogin.md)
- [presentationContextNotProvided](authenticationservices/aswebauthenticationsessionerror/presentationcontextnotprovided.md)
- [presentationContextInvalid](authenticationservices/aswebauthenticationsessionerror/presentationcontextinvalid.md)
- [ASWebAuthenticationSessionError.Code](authenticationservices/aswebauthenticationsessionerror/code.md)

### Type Properties

- [errorDomain](authenticationservices/aswebauthenticationsessionerror/errordomain.md)

## Relationships

### Conforms To

- [CustomNSError](foundation/customnserror.md)
- [Equatable](swift/equatable.md)
- [Error](swift/error.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Recognizing Errors

- [ASWebAuthenticationSessionErrorDomain](authenticationservices/aswebauthenticationsessionerrordomain.md)
- [ASWebAuthenticationSessionError.Code](authenticationservices/aswebauthenticationsessionerror/code.md)
