MCPcopy Create free account
hub / github.com/Waishnav/devspace / randomToken

Function randomToken

src/oauth-provider.ts:31–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29const CODE_TTL_MS = 5 * 60 * 1000;
30
31function randomToken(): string {
32 return randomBytes(32).toString("base64url");
33}
34
35function safeEquals(a: string, b: string): boolean {
36 const left = Buffer.from(a);

Callers 1

issueTokensMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected