Documentation
    Preparing search index...

    Variable FastifyJwtProviderConst

    FastifyJwtProvider: <Payload extends TSchema>(
        fastify: FastifyInstance,
        options: VerifyJwtPluginOptions<Payload>,
        done: (err?: Error) => void,
    ) => void = ...

    Type Declaration

      • <Payload extends TSchema>(
            fastify: FastifyInstance,
            options: VerifyJwtPluginOptions<Payload>,
            done: (err?: Error) => void,
        ): void
      • Plugin that adds an on-route hook for routes under the specified prefix which authenticates the jwt to other pre-handlers.

        Type Parameters

        • Payload extends TSchema

        Parameters

        • fastify: FastifyInstance

          The fastify instance that the pre-handler will be added to.

        • options: VerifyJwtPluginOptions<Payload>

          Object that contains specific properties to configure the request.

        • done: (err?: Error) => void

          Function that signals that the plugin has completed its operations.

        Returns void