@passkeyme/react-auth 2.2.0 → 2.2.2
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
|
@@ -6718,6 +6718,12 @@ const PasskeymeCallbackHandler = ({ loadingComponent: LoadingComponent, errorCom
|
|
|
6718
6718
|
const code = urlParams.get("code");
|
|
6719
6719
|
const error = urlParams.get("error");
|
|
6720
6720
|
const errorDescription = urlParams.get("error_description");
|
|
6721
|
+
debugLog(config, "CallbackHandler", "Extracted from URL:", {
|
|
6722
|
+
token: !!token,
|
|
6723
|
+
code: !!code,
|
|
6724
|
+
error,
|
|
6725
|
+
errorDescription,
|
|
6726
|
+
});
|
|
6721
6727
|
// Handle OAuth errors from the provider
|
|
6722
6728
|
if (error) {
|
|
6723
6729
|
const errorMessage = errorDescription || error || "Authentication failed";
|
|
@@ -6871,7 +6877,16 @@ const PasskeymeCallbackHandler = ({ loadingComponent: LoadingComponent, errorCom
|
|
|
6871
6877
|
}
|
|
6872
6878
|
};
|
|
6873
6879
|
processCallback();
|
|
6874
|
-
}, [
|
|
6880
|
+
}, [
|
|
6881
|
+
callbackProcessed,
|
|
6882
|
+
handleCallback,
|
|
6883
|
+
handleTokenCallback,
|
|
6884
|
+
onError,
|
|
6885
|
+
onSuccess,
|
|
6886
|
+
errorRedirect,
|
|
6887
|
+
successRedirect,
|
|
6888
|
+
config.debug,
|
|
6889
|
+
]);
|
|
6875
6890
|
// Handle auth errors from the SDK
|
|
6876
6891
|
React.useEffect(() => {
|
|
6877
6892
|
if (authError) {
|