---
title: ASWebAuthenticationSessionError.Code
framework: authenticationservices
role: symbol
role_heading: Enumeration
path: authenticationservices/aswebauthenticationsessionerror/code
---

# ASWebAuthenticationSessionError.Code

The error code for a web authentication session error.

## Declaration

```swift
enum Code
```

## Topics

### Codes

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

### Initializers

- [init(rawValue:)](authenticationservices/aswebauthenticationsessionerror/code/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Recognizing Errors

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