MCPcopy Index your code
hub / github.com/coder/coder / userSecrets

Function userSecrets

site/src/api/queries/userSecrets.ts:7–12  ·  view source on GitHub ↗
(userId: string)

Source from the content-addressed store, hash-verified

5const userSecretsKey = (userId: string) => ["users", userId, "secrets"];
6
7export const userSecrets = (userId: string) => {
8 return {
9 queryKey: userSecretsKey(userId),
10 queryFn: () => API.getUserSecrets(userId),
11 };
12};
13
14export const createUserSecret = (queryClient: QueryClient, userId: string) => {
15 return {

Callers 1

SecretsPageFunction · 0.90

Calls 2

userSecretsKeyFunction · 0.85
getUserSecretsMethod · 0.80

Tested by

no test coverage detected