• Use the authorize function to easily authorize requests according to the given auth spec. It ensures that requests contain auth info and additionally fulfill one of the given authorization requirements in authSpecs.

    NOTE: For auth specs, it is sufficient that all of the specified clauses in just ONE of the tuples pass authorization. I.e., authSpecs is an array of authorization criteria, any one of which will authorize the request.

    Type Parameters

    • T

    Parameters

    Returns asserts req is AuthdReqString<T>

  • Type Parameters

    • T

    Parameters

    Returns asserts req is AuthdReqBitwise<T>

  • Type Parameters

    • T

    Parameters

    Returns asserts req is AuthdReq<T>

Generated using TypeDoc