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

# Logout user

To sign out the user, use the `logout` method. It invalidates the current session, clears the session data that the SDK stored in the Keychain, and sets `web3Auth.web3AuthResponse` to `nil`. The user must sign in again to use the dapp the next time the dapp is opened.

## Usage

```swift
try await web3Auth.logout()

```
