For AI agents: a documentation index is available at /llms.txt. A markdown version of this page is available at the same URL with .md appended (or via Accept: text/markdown).
Skip to main content

Sign out a user

Call logout to end the current session. Subscribe to onLogout to run code after sign-out completes.

tip
void Start()
{
web3Auth = GetComponent<Web3Auth>();
web3Auth.setOptions(new Web3AuthOptions()
{

});
web3Auth.onLogout += onLogout;
}
private void onLogout()
{
// Functions to be called after user logs out
}

Usage

public void logout()
{
web3Auth.logout();
}

private void onLogout()
{
Debug.Log("Signed out");
}
On this page