Skip to content

Documentation / expo / usePrivy

Function: usePrivy() ​

usePrivy(): UsePrivy

Hook that exposes the core state of the Privy SDK, including the current authenticated user object and whether or not the SDK has initialized.

Returns ​

UsePrivy

the Privy SDK's core state

Example ​

ts
const {user, isReady} = usePrivy()