PrivyConfig
object:
PrivyLogLevel.NONE
.NotReady
until Privy finishes initialization. This might include checking if the user has a wallet connected, refreshing expired auth tokens, fetching up-to-date user data, and more.
It’s important to wait until Privy has finished initializing before you consume Privy’s state and interfaces, to ensure that the state you consume is accurate and not stale.
For your convenience, we’ve added an async awaitReady()
function that you can use to wait for Privy to finish initializing: