Documentation
    Preparing search index...

    Function JwtAuthenticator

    • Gets the jwt and creates a function that extracts the payload from that jwt.

      Type Parameters

      • Payload extends TSchema

      Parameters

      Returns (req: FastifyRequest) => Promise<(Payload & { params: [] })["static"]>

      authenticate - A function that authenticates the jwt and returns the payload after verifying/decoding it.