Function authorizationSchemeGetter

  • Return a TokenGetter function retrieving a token from the Authorization header of an HTTP request with the specified scheme.

    Parameters

    • scheme: string = 'bearer'

      Scheme of the token. Defaults to bearer.

    Returns TokenGetter<IncomingMessage>

    A TokenGetter function.