- withAuth<
I extends ZodType<any, any, any, I> = ZodTypeAny,
O extends ZodType<any, any, any, O> = ZodTypeAny,
S extends ZodType<any, any, any, S> = ZodTypeAny,
>(
flow: Flow<I, O, S>,
authProvider: RequestHandler<
ParamsDictionary,
any,
any,
ParsedQs,
Record<string, any>,
>,
authPolicy: AuthPolicy<ZodTypeAny, ZodTypeAny, ZodTypeAny>,
): FlowWithAuthPolicy<I, O, S>
Adds an auth policy to the flow.