Skip to Content

CustomerAccessToken

A customer access token used to identify a logged-in customer

Type Definition

type CustomerAccessToken { accessToken: String! expiresAt: String! }

Fields

FieldTypeDescription
accessTokenString!The access token string
expiresAtString!The date and time when the token expires (ISO 8601 format)

Relationships

The CustomerAccessToken type is returned by customer authentication operations and is used to maintain authenticated sessions. It is provided in the following mutation responses:

  • CustomerAccessTokenCreatePayload - Contains a customer access token upon successful login
  • CustomerAccessTokenRenewPayload - Contains a renewed customer access token when refreshing an existing token
  • CustomerCreatePayload - Contains a customer access token upon successful customer account creation

Example

{ customerAccessToken { accessToken expiresAt } }

Implements

This type does not implement any interfaces.

  • String