ts-lambda-api - v2.5.2
    Preparing search index...

    Function extractAuthData

    • Extract an instance of the authentication data type T from a HTTP request. If extraction is not possible due to missing request headers/data, undefined should be returned.

      Parameters

      • request: Request

        Request context to use.

      Returns Promise<T>

      Instance of type T or undefined on extraction failure.