MCPcopy 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
20function encodeState(state: OAuthState) {
21 return toBase64Url(JSON.stringify(state));
22}
23
24function decodeState(state: string) {
25 const [encoded] = state.split(".");

Callers 1

performLoginFunction · 0.85

Calls 1

toBase64UrlFunction · 0.85

Tested by

no test coverage detected