Logging users out
Logging out a user ends their authenticated session, removing their access credentials from the device and requiring them to authenticate again to access protected resources.
Usage
To log a user out, use the logout
method from the usePrivy
hook:
Callbacks
You can attach callbacks to the logout process using the useLogout
hook:
Was this page helpful?