Skip to content

Waiting for isReady

Privy uses a secure context as part of its embedded wallet architecture on mobile. Before your app is ready to use embedded wallets, your application must have a secure context available.

You can ensure a secure context is available in your application by waiting for the value of isReady which is returned by the usePrivy hook to be true.

tsx
import {usePrivy} from '@privy-io/expo';

export function App() {
  const {isReady} = usePrivy();

  if (!isReady) return <Spinner />;

  return <AppContent />;
}

You must check this value before using any other embedded wallet functionality within the SDK.