@passkeyme/react-auth 2.2.2 → 2.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -6766,6 +6766,8 @@ const PasskeymeCallbackHandler = ({ loadingComponent: LoadingComponent, errorCom
|
|
|
6766
6766
|
showPasskeyPrompt: shouldPrompt,
|
|
6767
6767
|
});
|
|
6768
6768
|
debugLog(config, "CallbackHandler", "Token flow - updated state, showPasskeyPrompt:", shouldPrompt);
|
|
6769
|
+
// Mark callback as processed to prevent re-execution
|
|
6770
|
+
setCallbackProcessed(true);
|
|
6769
6771
|
if (!shouldPrompt) {
|
|
6770
6772
|
// Proceed with normal redirect
|
|
6771
6773
|
proceedWithRedirect();
|
|
@@ -6815,6 +6817,8 @@ const PasskeymeCallbackHandler = ({ loadingComponent: LoadingComponent, errorCom
|
|
|
6815
6817
|
showPasskeyPrompt: shouldPrompt,
|
|
6816
6818
|
});
|
|
6817
6819
|
debugLog(config, "CallbackHandler", "OAuth code flow - updated state, showPasskeyPrompt:", shouldPrompt);
|
|
6820
|
+
// Mark callback as processed to prevent re-execution
|
|
6821
|
+
setCallbackProcessed(true);
|
|
6818
6822
|
if (!shouldPrompt) {
|
|
6819
6823
|
// Proceed with normal redirect
|
|
6820
6824
|
proceedWithRedirect();
|