Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/anomalyco/opencode
/ generateState
Function
generateState
packages/opencode/src/plugin/xai.ts:74–76 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
72
}
73
74
function
generateState(): string {
75
return
base64UrlEncode(crypto.getRandomValues(
new
Uint8Array(32)).buffer)
76
}
77
78
interface
TokenResponse {
79
access_token: string
Callers
1
XaiAuthPlugin
Function · 0.70
Calls
1
base64UrlEncode
Function · 0.70
Tested by
no test coverage detected