-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pull error conversion out into an extension to simplify controller (#32)
We encapsulate the `ASAuthenticationError.Code` values into our own `SnapAuthError` format. This change moves the conversion outside of the AS delegate callback into an extension defined near our own error codes. Doing so encourages a single source of truth in case future functionality requires a similar conversion in a different path. It also adds support for a newly-defined case in iOS 18 and same-year equivalents.
- Loading branch information
Showing
2 changed files
with
32 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters