The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 06:00 UTC
| 1 | import * as RpcMiddleware from "effect/rpc/RpcMiddleware"; |
| 2 | import * as Schema from "effect/Schema"; |
| 3 | |
| 4 | /** The request lacks a valid second factor. */ |
| 5 | export class MfaRequired extends Schema.TaggedError<MfaRequired>()("MfaRequired", {}) {} |
| 6 | |
| 7 | /** Requires a second factor for sensitive operations. */ |
| 8 | export class MfaChallenge extends RpcMiddleware.Service<MfaChallenge>()("Bank/MfaChallenge", { |
| 9 | error: MfaRequired, |
| 10 | }) {} |