( stateHash: string )
| 152 | } |
| 153 | |
| 154 | export 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 | |
| 164 | export function consumeCommandCodeAuthSecret( |
| 165 | stateHash: string |
no test coverage detected