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

# Sign out a user

Use the `useWeb3AuthDisconnect` hook to end the current authenticated session.

## Import[​](#import "Direct link to Import")

```
import { useWeb3AuthDisconnect } from '@web3auth/react-native-sdk'

```

## Usage[​](#usage "Direct link to Usage")

```
import { useWeb3AuthDisconnect } from '@web3auth/react-native-sdk'

function LogoutButton() {
  const { disconnect, loading, error } = useWeb3AuthDisconnect()

  return (
    <View>
      <Button
        title={loading ? 'Signing out…' : 'Sign out'}
        disabled={loading}
        onPress={() => disconnect()}
      />
      {error && <Text style={{ color: 'red' }}>{error.message}</Text>}
    </View>
  )
}

```

Calling `disconnect()` clears the persisted session from device storage. After it resolves, `useWeb3Auth().isConnected` becomes `false` and the `provider` becomes `null`.

## Related[​](#related "Direct link to Related")

- [useWeb3AuthDisconnect hook reference](/embedded-wallets/sdk/react-native/hooks/useWeb3AuthDisconnect/)
