Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

ServerAuthPolicy.ts

11 lines392 Bytes

1import type { ServerAuthDescriptor } from "@t3tools/contracts";
2import { Context } from "effect";
3import type { Effect } from "effect";
4​
5export interface ServerAuthPolicyShape {
6 readonly getDescriptor: () => Effect.Effect<ServerAuthDescriptor>;
7}
8​
9export class ServerAuthPolicy extends Context.Service<ServerAuthPolicy, ServerAuthPolicyShape>()(
10 "t3/auth/Services/ServerAuthPolicy",
11) {}