Skip to content

Documentation / react-auth / useUser

Function: useUser()

useUser(): Object

Use this hook to programmatically update the user in response to any backend change

Returns

Object

user - user object from Privy refreshUser - method used to update the user object and identity token in the client

refreshUser

refreshUser: () => Promise<undefined | User>

Returns

Promise<undefined | User>

user

user: null | User