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

Function decodeLoginState

apps/cloud/src/auth/login-state.ts:32–36  ·  view source on GitHub ↗
(value: string | null | undefined)

Source from the content-addressed store, hash-verified

30
31/** Decode a state value back; null for anything we didn't mint. */
32export const decodeLoginState = (value: string | null | undefined): LoginState | null => {
33 if (!value) return null;
34 const json = Result.getOrNull(Encoding.decodeBase64UrlString(value));
35 return json === null ? null : Option.getOrNull(decodeLoginStateJson(json));
36};

Callers 3

handlers.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected