fix and update
This commit is contained in:
@@ -40,7 +40,7 @@ import { usePublicSettings } from './public-settings-provider';
|
||||
import { useToast } from './toast-provider';
|
||||
import { PinLockModal } from './pin-lock-modal';
|
||||
import { AppBootstrapScreen } from './app-bootstrap-screen';
|
||||
import { EMBEDDED_AUTH_MESSAGE, type EmbeddedAuthPayload } from '@/lib/embedded-auth-bridge';
|
||||
import { EMBEDDED_AUTH_MESSAGE, type EmbeddedAuthPayload, useEmbeddedAuthFallback } from '@/lib/embedded-auth-bridge';
|
||||
import { usePinIdleLock } from '@/hooks/use-pin-idle-lock';
|
||||
import { clearPinIdleWatch, isPinIdleWatchActive, markPinIdleWatch } from '@/lib/pin-idle-storage';
|
||||
|
||||
@@ -145,6 +145,8 @@ export function AuthProvider({ children }: { children: React.ReactNode }) {
|
||||
const refreshInFlightRef = React.useRef<Promise<void> | null>(null);
|
||||
const initialBootstrapDoneRef = React.useRef(false);
|
||||
|
||||
useEmbeddedAuthFallback();
|
||||
|
||||
React.useEffect(() => {
|
||||
if (isApiGatewayReady()) {
|
||||
setIsApiReady(true);
|
||||
|
||||
Reference in New Issue
Block a user