MCPcopy Create free account
hub / github.com/Autonoma-AI/autonoma / createInstallState

Function createInstallState

apps/api/src/github/github-state.ts:11–17  ·  view source on GitHub ↗
(organizationId: string, returnPath?: string)

Source from the content-addressed store, hash-verified

9 * Audience for the install-state token. `jose` verifies it as part of the signature check, so a
10 * token minted for some other purpose against the same secret cannot be replayed as install state.
11 */
12const INSTALL_STATE_AUDIENCE = "autonoma:github-install-state";
13
14const HMAC_ALGORITHM = "HS256";
15
16const InstallStateSchema = z.object({
17 organizationId: z.string().min(1),
18 returnPath: z.string().optional(),
19});
20

Callers 2

github.router.tsFile · 0.90

Calls 2

getSecretFunction · 0.85
fromMethod · 0.80

Tested by

no test coverage detected