Skip to main content
Anchor to customerAccessTokenCreateWithMultipass

customerAccessTokenCreateWithMultipass

mutation

Requires unauthenticated_write_customers access scope.

Creates a CustomerAccessToken using a multipass token instead of email and password. This enables single sign-on for customers who authenticate through an external system.

If the customer doesn't exist in Shopify, then a new customer record is created automatically. If the customer exists but the record is disabled, then the customer record is re-enabled.


Caution

Multipass tokens are only valid for 15 minutes and can only be used once. Generate tokens on-the-fly when needed rather than in advance.


•String!
required

A valid multipass token to be authenticated.


Was this section helpful?

Anchor to CustomerAccessTokenCreateWithMultipassPayload returnsCustomerAccessTokenCreateWithMultipassPayload returns

•CustomerAccessToken

An access token object associated with the customer.

•[CustomerUserError!]!
non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?