Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.modelence.com/llms.txt

Use this file to discover all available pages before exploring further.

API Reference / modelence / server / UserInfo
UserInfo = object
Defined in: packages/modelence/src/auth/types.ts:41

Properties

PropertyTypeDescriptionDefined in
avatarUrl?string-packages/modelence/src/auth/types.ts:54
firstName?string-packages/modelence/src/auth/types.ts:52
handlestringThe user’s display handle.packages/modelence/src/auth/types.ts:45
hasRole(role) => booleanReturns true if the user has the given role.packages/modelence/src/auth/types.ts:49
idstringThe user’s unique identifier.packages/modelence/src/auth/types.ts:43
lastName?string-packages/modelence/src/auth/types.ts:53
requireRole(role) => voidThrows an error if the user does not have the given role.packages/modelence/src/auth/types.ts:51
rolesstring[]The role strings assigned to this user in the database.packages/modelence/src/auth/types.ts:47