@erikey/react 0.4.35 → 0.4.36
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/ui/index.mjs
CHANGED
|
@@ -15542,15 +15542,8 @@ function AuthFlow({
|
|
|
15542
15542
|
const handleAuthEvent = useCallback9(
|
|
15543
15543
|
(event) => {
|
|
15544
15544
|
onEvent?.(event);
|
|
15545
|
-
if (mode === "internal" && event.type === "AUTH_SUCCESS") {
|
|
15546
|
-
if (externalNavigate) {
|
|
15547
|
-
externalNavigate(redirectTo);
|
|
15548
|
-
} else {
|
|
15549
|
-
window.location.href = redirectTo;
|
|
15550
|
-
}
|
|
15551
|
-
}
|
|
15552
15545
|
},
|
|
15553
|
-
[onEvent
|
|
15546
|
+
[onEvent]
|
|
15554
15547
|
);
|
|
15555
15548
|
const viewKey = useMemo5(() => {
|
|
15556
15549
|
if (mode === "route") {
|