> This page is for Developer.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.bigcommerce.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.bigcommerce.com/_mcp/server.

# loginWithCustomerLoginJwt

GraphQL MUTATION

Login with Customer Login JWT.

Reference: https://docs.bigcommerce.com/developer/api-reference/graphql/storefront/mutations/login-with-customer-login-jwt

## GraphQL Schema

```graphql
mutation ExampleMutation($jwt: String!, $guestCartEntityId: String) {
  loginWithCustomerLoginJwt(jwt: $jwt, guestCartEntityId: $guestCartEntityId) {
    redirectTo
    customer {
      entityId
      company
      customerGroupId
      customerGroupName
      email
      firstName
      lastName
      notes
      phone
      taxExemptCategory
    }
    cart {
      id
      entityId
      currencyCode
      displayCurrencyCode
      isTaxIncluded
      baseAmount
      baseAmountInDisplayCurrency
      discountedAmount
      discountedAmountInDisplayCurrency
      amount
    }
    customerAccessToken {
      value
      expiresAt
    }
  }
}
```

## Variables

```json
{
  "jwt": "example",
  "guestCartEntityId": "example"
}
```