MCPcopy
hub / github.com/simstudioai/sim / generateSecureToken

Function generateSecureToken

packages/security/src/tokens.ts:10–12  ·  view source on GitHub ↗
(byteLength = 24)

Source from the content-addressed store, hash-verified

8 * @param byteLength - Number of random bytes to draw before encoding. Defaults to 24 (~32 chars).
9 */
10export function generateSecureToken(byteLength = 24): string {
11 return randomBytes(byteLength).toString('base64url')
12}

Callers 3

tokens.test.tsFile · 0.90
generateApiKeyFunction · 0.90
generateEncryptedApiKeyFunction · 0.90

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected