Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/code-with-antonio/nightcode
/ encodeState
Function
encodeState
packages/cli/src/lib/oauth.ts:20–22 ·
view source on GitHub ↗
(state: OAuthState)
Source
from the content-addressed store, hash-verified
18
}
19
20
function
encodeState(state: OAuthState) {
21
return
toBase64Url(JSON.stringify(state));
22
}
23
24
function
decodeState(state: string) {
25
const
[encoded] = state.split(
"."
);
Callers
1
performLogin
Function · 0.85
Calls
1
toBase64Url
Function · 0.85
Tested by
no test coverage detected