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

Function postAppSecret

site/src/api/queries/oauth2.ts:84–96  ·  view source on GitHub ↗
(queryClient: QueryClient)

Source from the content-addressed store, hash-verified

82};
83
84export const postAppSecret = (queryClient: QueryClient) => {
85 return {
86 mutationFn: API.postOAuth2ProviderAppSecret,
87 onSuccess: async (
88 _: TypesGen.OAuth2ProviderAppSecretFull,
89 appId: string,
90 ) => {
91 await queryClient.invalidateQueries({
92 queryKey: appSecretsKey(appId),
93 });
94 },
95 };
96};
97
98export const deleteAppSecret = (queryClient: QueryClient) => {
99 return {

Callers

nothing calls this directly

Calls 1

appSecretsKeyFunction · 0.85

Tested by

no test coverage detected