Crypto Server
    Preparing search index...

    Function hasScope

    • Check if an authenticated payload has the required scope.

      Parameters

      • payload: AuthPayload
      • required:
            | "crypto:encrypt"
            | "crypto:decrypt"
            | "crypto:sign"
            | "crypto:verify"
            | "crypto:hash"
            | "crypto:kdf"
            | "crypto:keys"
            | "crypto:admin"

      Returns boolean