Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
9
export
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
bootstrapFromEnv
Function · 0.90
setupRailwayGateway
Function · 0.90
setupDockerGateway
Function · 0.90
runRegister
Function · 0.90
Calls
1
toString
Method · 0.80
Tested by
no test coverage detected