---
agentTools:
  projectIndex: https://polyfact.readme.io/llms.txt
---

# user

User object with Auth and Token IDs.

* Give you access to a unique userID
* Useful to mesure rateLimit and user's usage if you want to trigger a paywall / payment flow.

```typescript
export type UserClient = {
    usage: () => Promise<{
        usage: number;
        rateLimit?: number;
    }>;
    getAuthID: () => Promise<string>;
    getToken: () => Promise<string>;
};
```