25개 이상의 토픽을 선택하실 수 없습니다.
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;
- }
- }
- }
|