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

    Function authenticate

    • Attempt to authorise a user suing the authentication data supplied. An instance of the principal type U should be returned on authentication success, otherwise undefined should be returned.

      Parameters

      • authData: T

        An instance of the authentication data type T.

      Returns Promise<U>

      Instance of type U or undefined on authentication failure.