@passkeyme/react-auth 2.3.1 → 2.3.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
|
@@ -2364,6 +2364,13 @@ debugMode = false, passkeyOptions = {}, }) => {
|
|
|
2364
2364
|
onSuccess: (user, method) => {
|
|
2365
2365
|
if (debugMode)
|
|
2366
2366
|
console.log("✅ PasskeymeAuthPanel: Success via", method, user);
|
|
2367
|
+
// Auto-set localStorage flag when passkey is used
|
|
2368
|
+
if (method === "passkey" && detectUsingLocalStorage) {
|
|
2369
|
+
localStorage.setItem(localStorageKey, "true");
|
|
2370
|
+
if (debugMode) {
|
|
2371
|
+
console.log("💾 PasskeymeAuthPanel: Passkey setup flag saved to localStorage");
|
|
2372
|
+
}
|
|
2373
|
+
}
|
|
2367
2374
|
setShowOAuthOptions(false);
|
|
2368
2375
|
setInternalError(null);
|
|
2369
2376
|
onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(user, method);
|