MCPcopy Create free account
hub / github.com/coder/coder / user

Function user

site/src/api/queries/users.ts:159–164  ·  view source on GitHub ↗
(usernameOrId: string)

Source from the content-addressed store, hash-verified

157const userKey = (usernameOrId: string) => ["user", usernameOrId];
158
159export const user = (usernameOrId: string) => {
160 return {
161 queryKey: userKey(usernameOrId),
162 queryFn: () => API.getUser(usernameOrId),
163 };
164};
165
166export function apiKey(): UseQueryOptions<GenerateAPIKeyResponse> {
167 return {

Callers 2

EditUserPageFunction · 0.90
AgentSettingsSpendPageFunction · 0.90

Calls 1

userKeyFunction · 0.85

Tested by

no test coverage detected