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, 03:37 UTC
| 1 | import * as Context from "effect/Context"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | |
| 4 | import * as PayloadSigner from "../auth/PayloadSigner.ts"; |
| 5 | import type * as ServerSecretStore from "../auth/ServerSecretStore.ts"; |
| 6 | |
| 7 | /** Signs asset and attachment-upload URLs; both share one key. */ |
| 8 | export class AssetSigner extends Context.Service< |
| 9 | AssetSigner, |
| 10 | PayloadSigner.PayloadSigner<ServerSecretStore.SecretStoreError> |
| 11 | >()("t3/assets/AssetSigner") {} |
| 12 | |
| 13 | export const layer = Layer.effect(AssetSigner, PayloadSigner.make("asset-access-signing-key")); |