---
title: SFAuthenticationError
framework: safariservices
role: symbol
role_heading: Structure
path: safariservices/sfauthenticationerror-swift.struct
---

# SFAuthenticationError

An authentication error.

## Declaration

```swift
struct SFAuthenticationError
```

## Topics

### Type Properties

- [canceledLogin](safariservices/sfauthenticationerror-swift.struct/canceledlogin.md)
- [errorDomain](safariservices/sfauthenticationerror-swift.struct/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

### Deprecated

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