Crypto Server
    Preparing search index...

    Function registerAuth

    • Register the JWT plugin when JWT_SECRET is set. Every token must be HS256, carry exp and iat, be younger than JWT_MAX_AGE seconds (default 3600), and match JWT_ISSUER / JWT_AUDIENCE when those are set. Throws on invalid JWT settings, so a misconfigured server does not start.

      Parameters

      • app: FastifyInstance

      Returns Promise<void>