MCPcopy Create free account
hub / github.com/diegosouzapw/OmniRoute / getCommandCodeAuthSessionSafeStatus

Function getCommandCodeAuthSessionSafeStatus

src/lib/db/commandCodeAuth.ts:154–162  ·  view source on GitHub ↗
(
  stateHash: string
)

Source from the content-addressed store, hash-verified

152}
153
154export function getCommandCodeAuthSessionSafeStatus(
155 stateHash: string
156): CommandCodeAuthSafeStatus | null {
157 markExpiredForState(stateHash);
158 const row = db()
159 .prepare<AuthSessionRow>("SELECT * FROM command_code_auth_sessions WHERE state_hash = ?")
160 .get(stateHash);
161 return row ? toSafeStatus(row) : null;
162}
163
164export function consumeCommandCodeAuthSecret(
165 stateHash: string

Callers 2

handleFunction · 0.90

Calls 5

markExpiredForStateFunction · 0.85
toSafeStatusFunction · 0.85
dbFunction · 0.70
getMethod · 0.65
prepareMethod · 0.65

Tested by

no test coverage detected