Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]> Co-authored-by: Julius Marminge <[email protected]> Co-authored-by: codex <[email protected]>
12 lines
392 B
TypeScript
12 lines
392 B
TypeScript
import type { ServerAuthDescriptor } from "@t3tools/contracts";
|
|
import { Context } from "effect";
|
|
import type { Effect } from "effect";
|
|
|
|
export interface ServerAuthPolicyShape {
|
|
readonly getDescriptor: () => Effect.Effect<ServerAuthDescriptor>;
|
|
}
|
|
|
|
export class ServerAuthPolicy extends Context.Service<ServerAuthPolicy, ServerAuthPolicyShape>()(
|
|
"t3/auth/Services/ServerAuthPolicy",
|
|
) {}
|