public void QuickLogin( AppleAuthQuickLoginArgs quickLoginArgs, Action <ICredential> successCallback, Action <IAppleError> errorCallback) { #if APPLE_AUTH_MANAGER_NATIVE_IMPLEMENTATION_AVAILABLE var nonce = quickLoginArgs.Nonce; var state = quickLoginArgs.State; var requestId = CallbackHandler.AddMessageCallback( true, payload => { var response = this._payloadDeserializer.DeserializeLoginWithAppleIdResponse(payload); if (response.Error != null) { errorCallback(response.Error); } else if (response.PasswordCredential != null) { successCallback(response.PasswordCredential); } else { successCallback(response.AppleIDCredential); } }); PInvoke.AppleAuth_QuickLogin(requestId, nonce, state); #else throw new Exception("AppleAuthManager is not supported in this platform"); #endif }