@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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PasskeymeCallbackHandler.d.ts","sourceRoot":"","sources":["../../src/components/PasskeymeCallbackHandler.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAC;AAuLzD,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,iBAAiB,EAAE,GAAG,GAAG,IAAI,CAAC;CAC/B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,eAAO,MAAM,wBAAwB,GAAI,sIAQtC,6BAA6B,
|
|
1
|
+
{"version":3,"file":"PasskeymeCallbackHandler.d.ts","sourceRoot":"","sources":["../../src/components/PasskeymeCallbackHandler.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAC;AAuLzD,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,iBAAiB,EAAE,GAAG,GAAG,IAAI,CAAC;CAC/B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,eAAO,MAAM,wBAAwB,GAAI,sIAQtC,6BAA6B,mDAg3B/B,CAAC"}
|
package/dist/index.esm.js
CHANGED
|
@@ -6717,6 +6717,12 @@ const PasskeymeCallbackHandler = ({ loadingComponent: LoadingComponent, errorCom
|
|
|
6717
6717
|
const code = urlParams.get("code");
|
|
6718
6718
|
const error = urlParams.get("error");
|
|
6719
6719
|
const errorDescription = urlParams.get("error_description");
|
|
6720
|
+
debugLog(config, "CallbackHandler", "Extracted from URL:", {
|
|
6721
|
+
token: !!token,
|
|
6722
|
+
code: !!code,
|
|
6723
|
+
error,
|
|
6724
|
+
errorDescription,
|
|
6725
|
+
});
|
|
6720
6726
|
// Handle OAuth errors from the provider
|
|
6721
6727
|
if (error) {
|
|
6722
6728
|
const errorMessage = errorDescription || error || "Authentication failed";
|
|
@@ -6870,7 +6876,16 @@ const PasskeymeCallbackHandler = ({ loadingComponent: LoadingComponent, errorCom
|
|
|
6870
6876
|
}
|
|
6871
6877
|
};
|
|
6872
6878
|
processCallback();
|
|
6873
|
-
}, [
|
|
6879
|
+
}, [
|
|
6880
|
+
callbackProcessed,
|
|
6881
|
+
handleCallback,
|
|
6882
|
+
handleTokenCallback,
|
|
6883
|
+
onError,
|
|
6884
|
+
onSuccess,
|
|
6885
|
+
errorRedirect,
|
|
6886
|
+
successRedirect,
|
|
6887
|
+
config.debug,
|
|
6888
|
+
]);
|
|
6874
6889
|
// Handle auth errors from the SDK
|
|
6875
6890
|
useEffect(() => {
|
|
6876
6891
|
if (authError) {
|