Auth policy context is an object passed to the auth policy providing details necessary for auth.

interface AuthPolicyContext<
    I extends ZodTypeAny = ZodTypeAny,
    O extends ZodTypeAny = ZodTypeAny,
    S extends ZodTypeAny = ZodTypeAny,
> {
    action?: Action<I, O, S>;
    auth?: Record<string, any>;
    input: TypeOf<I>;
    request: RequestWithAuth;
}

Type Parameters

Properties

action?: Action<I, O, S>
auth?: Record<string, any>
input: TypeOf<I>