You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- using AppleAuth.Enums;
- using AppleAuth.Interfaces;
- using System;
-
- namespace AppleAuth.Extensions
- {
- public static class AppleErrorExtensions
- {
- public static AuthorizationErrorCode GetAuthorizationErrorCode(this IAppleError error)
- {
- if (error.Domain == "com.apple.AuthenticationServices.AuthorizationError" &&
- Enum.IsDefined(typeof(AuthorizationErrorCode), error.Code))
- {
- return (AuthorizationErrorCode)error.Code;
- }
-
- return AuthorizationErrorCode.Unknown;
- }
- }
- }
|