Sign in

Handler Type: ProtectHook

ProtectHook = (options?: ProtectOptions) => (request: FastifyRequest, reply: FastifyReply) => Promise<void>

Factory function that returns a Fastify onRequest hook for protecting API routes.

Parameters

ParameterType
options?ProtectOptions

Returns

(request: FastifyRequest, reply: FastifyReply): Promise<void>

Parameters

ParameterType
requestFastifyRequest
replyFastifyReply

Returns

Promise<void>

© 2024 MonoCloud. All rights reserved.