MonoCloud Authentication SDK
Preparing search index...
@monocloud/backend-node
frameworks/fastify
ProtectHook
Type Alias ProtectHook
ProtectHook
:
(
options
?:
ProtectOptions
,
)
=>
(
request
:
FastifyRequest
,
reply
:
FastifyReply
)
=>
Promise
<
void
>
Factory function that returns a Fastify
onRequest
hook for protecting API routes.
Type Declaration
(
options
?:
ProtectOptions
,
)
:
(
request
:
FastifyRequest
,
reply
:
FastifyReply
)
=>
Promise
<
void
>
Parameters
Optional
options
:
ProtectOptions
Returns
(
request
:
FastifyRequest
,
reply
:
FastifyReply
)
=>
Promise
<
void
>
Settings
Theme
OS
Light
Dark
MonoCloud Authentication SDK
Loading...
Factory function that returns a Fastify
onRequesthook for protecting API routes.