From 17a993e2c1d370c55f4e847b23224e487efc8837 Mon Sep 17 00:00:00 2001 From: Oskar Eichler <62393985+OskarEichler@users.noreply.github.com> Date: Thu, 27 Aug 2026 20:01:38 +0300 Subject: [PATCH] fix: preserve caller-owned Apple authentication request options --- lib/AppleAuthModule.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/AppleAuthModule.js b/lib/AppleAuthModule.js index 45cf4ad2..d1c6830c 100644 --- a/lib/AppleAuthModule.js +++ b/lib/AppleAuthModule.js @@ -103,6 +103,8 @@ export default class AppleAuthModule { ) { throwIfNotSupported(this.isSupported); + requestOptions = { ...requestOptions }; + if (!Object.hasOwnProperty.call(requestOptions, ['nonceEnabled'])) { requestOptions.nonceEnabled = true; } else if (typeof requestOptions.nonceEnabled !== 'boolean') {