Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
29
const
CODE_TTL_MS = 5 * 60 * 1000;
30
31
function
randomToken(): string {
32
return
randomBytes(32).toString(
"base64url"
);
33
}
34
35
function
safeEquals(a: string, b: string): boolean {
36
const
left = Buffer.from(a);
Callers
1
issueTokens
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected