---
title: SFAuthenticationError.Code
framework: safariservices
role: symbol
role_heading: Enumeration
path: safariservices/sfauthenticationerror-swift.struct/code
---

# SFAuthenticationError.Code

Messages that describe an authentication error.

## Declaration

```swift
enum Code
```

```swift
enum SFAuthenticationError
```

## Topics

### Enumeration Cases

- [SFAuthenticationError.Code.canceledLogin](safariservices/sfauthenticationerror-swift.struct/code/canceledlogin.md)

### Initializers

- [init(rawValue:)](safariservices/sfauthenticationerror-swift.struct/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

### Deprecated

- [SFContentBlockerErrorDomain](safariservices/sfcontentblockererrordomain.md)
- [SFContentBlockerErrorCode](safariservices/sfcontentblockererrorcode.md)
- [SFAuthenticationSession](safariservices/sfauthenticationsession.md)
- [SFAuthenticationError](safariservices/sfauthenticationerror-swift.struct.md)
- [SFAuthenticationErrorDomain](safariservices/sfauthenticationerrordomain.md)
