Typescript SDK Type Docs
    Preparing search index...

    Class ByProjectKeyMeLoginRequestBuilder

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    args: {
        baseUri?: string;
        executeRequest: executeRequest;
        pathArgs: { projectKey: string };
    }

    Methods

    post

    • post(
          methodArgs: {
              body: MyCustomerSignin;
              headers?: { [key: string]: string | string[] };
          },
      ): ApiRequest<CustomerSignInResult>

      Retrieves the authenticated customer (that matches the given email/password pair).

      If used with an optional [access token for an anonymous session](ctp:api:type:AnonymousSession), all Orders and Carts that belong to the `anonymousId` are assigned to the newly logged-in Customer.
      
      - If the Customer does not have a Cart yet, the most recently modified anonymous cart becomes the Customer's Cart.
      - If the Customer already has a Cart, the most recently modified anonymous cart is handled in accordance with [AnonymousCartSignInMode](ctp:api:type:AnonymousCartSignInMode).
      
      If an account with the given credentials is not found, an [InvalidCredentials](ctp:api:type:InvalidCredentialsError) error is returned.
      

      Parameters

      • methodArgs: { body: MyCustomerSignin; headers?: { [key: string]: string | string[] } }

      Returns ApiRequest<CustomerSignInResult>