UserInfo = object
Defined in: packages/modelence/src/auth/types.ts:6
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
handle | string | The user’s display handle. | packages/modelence/src/auth/types.ts:10 |
hasRole | (role) => boolean | Returns true if the user has the given role. | packages/modelence/src/auth/types.ts:14 |
id | string | The user’s unique identifier. | packages/modelence/src/auth/types.ts:8 |
requireRole | (role) => void | Throws an error if the user does not have the given role. | packages/modelence/src/auth/types.ts:16 |
roles | string[] | The role strings assigned to this user in the database. | packages/modelence/src/auth/types.ts:12 |