> For the complete documentation index, see [llms.txt](https://docs.tonomy.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tonomy.io/build-web4-apps/usage/usage.md).

# User Data and Logout

### Accessing User Data

```typescript
const accountName = await user.getAccountName();
const username = await user.getUsername();
const did = await user.getDid();
```

### Logout

```typescript
await user.logout();
```
