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

ServerAuthPolicy.ts

11 lines409 Bytes

1import type { ServerAuthDescriptor } from "@t3tools/contracts";
2import * as Context from "effect/Context";
3import type * as Effect from "effect/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) {}