public void LoginSilently(
            Action <ICredential> successCallback,
            Action <IAppleError> errorCallback)
        {
#if UNITY_IOS && !UNITY_EDITOR
            var requestId = NativeMessageHandler.AddMessageCallback(
                this._scheduler,
                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_IOS_LoginSilently(requestId);
#else
            throw new Exception("Apple Auth is only supported for iOS 13.0 onwards");
#endif
        }