CustomerAccessToken
A customer access token used to identify a logged-in customer
Type Definition
type CustomerAccessToken {
accessToken: String!
expiresAt: String!
}Fields
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 loginCustomerAccessTokenRenewPayload- Contains a renewed customer access token when refreshing an existing tokenCustomerCreatePayload- Contains a customer access token upon successful customer account creation
Example
{
customerAccessToken {
accessToken
expiresAt
}
}Implements
This type does not implement any interfaces.
Related Types
- String