public void SetCredentialsRevokedCallback(Action <string> credentialsRevokedCallback)
        {
#if UNITY_IOS && !UNITY_EDITOR
            if (this._registeredCredentialsRevokedCallbackId != 0)
            {
                NativeMessageHandler.RemoveMessageCallback(this._registeredCredentialsRevokedCallbackId);
                this._registeredCredentialsRevokedCallbackId = 0;
            }

            if (credentialsRevokedCallback != null)
            {
                this._registeredCredentialsRevokedCallbackId = NativeMessageHandler.AddMessageCallback(
                    this._scheduler,
                    false,
                    credentialsRevokedCallback);
            }

            PInvoke.AppleAuth_IOS_RegisterCredentialsRevokedCallbackId(this._registeredCredentialsRevokedCallbackId);
#else
            throw new Exception("Apple Auth is only supported for iOS 13.0 onwards");
#endif
        }