MCPcopy
hub / github.com/RedPlanetHQ/core / generateSecurityKey

Function generateSecurityKey

packages/cli/src/server/api/auth.ts:9–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7}
8
9export function generateSecurityKey(): string {
10 return `gwk_${randomBytes(32).toString('base64url')}`;
11}
12
13/**
14 * Verify a raw Bearer token against the stored sha256(securityKey) hash.

Callers 4

bootstrapFromEnvFunction · 0.90
setupRailwayGatewayFunction · 0.90
setupDockerGatewayFunction · 0.90
runRegisterFunction · 0.90

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected