MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / encodeLoginState

Function encodeLoginState

apps/cloud/src/auth/login-state.ts:28–29  ·  view source on GitHub ↗
(state: LoginState)

Source from the content-addressed store, hash-verified

26const encodeLoginStateJson = Schema.encodeSync(LoginStateFromJson);
27
28export const encodeLoginState = (state: LoginState): string =>
29 Encoding.encodeBase64Url(encodeLoginStateJson(state));
30
31/** Decode a state value back; null for anything we didn't mint. */
32export const decodeLoginState = (value: string | null | undefined): LoginState | null => {

Callers 2

handlers.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected