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

Function deleteAppSecret

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

Source from the content-addressed store, hash-verified

96};
97
98export const deleteAppSecret = (queryClient: QueryClient) => {
99 return {
100 mutationFn: ({ appId, secretId }: { appId: string; secretId: string }) =>
101 API.deleteOAuth2ProviderAppSecret(appId, secretId),
102 onSuccess: async (_: unknown, { appId }: { appId: string }) => {
103 await queryClient.invalidateQueries({
104 queryKey: appSecretsKey(appId),
105 });
106 },
107 };
108};
109
110export const revokeApp = (queryClient: QueryClient, userId: string) => {
111 return {

Callers 1

OAuth2SecretRowFunction · 0.85

Calls 2

appSecretsKeyFunction · 0.85

Tested by

no test coverage detected