> For the complete documentation index, see [llms.txt](/llms.txt).

# 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[​](#usage "Direct link to Usage")

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

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

```
