Type alias AuthValidator

AuthValidator: ((scheme, value, request) => boolean | PromiseLike<boolean>)

Type declaration

    • (scheme, value, request): boolean | PromiseLike<boolean>
    • Validator, that checks scheme and value of an 'Authorization' header.

      Parameters

      • scheme: string

        The name of the scheme in lower case characters.

      • value: string

        The value of the Authorization header.

      • request: IHttpRequest

        The request context.

      Returns boolean | PromiseLike<boolean>

      A truely value, that indicates, if criteria do match, or the promise with it.

Generated using TypeDoc