Crypto Server
    Preparing search index...

    Function requireScope

    • Authorization guard — rejects with 403 if the scope is not present.

      Parameters

      • payload: AuthPayload
      • scope:
            | "crypto:encrypt"
            | "crypto:decrypt"
            | "crypto:sign"
            | "crypto:verify"
            | "crypto:hash"
            | "crypto:kdf"
            | "crypto:keys"
            | "crypto:admin"
      • reply: FastifyReply

      Returns boolean