Skip to main content

CustomerAuthResponse

The result of a customer sign in.

type CustomerAuthResponse {
accessToken: String!
expiresIn: Int!
refreshToken: String!
sessionToken: String
tokenType: String!
user: CustomerUser!
}

Fields​

CustomerAuthResponse.accessToken ● String! non-null scalar​

The token to send with requests.

CustomerAuthResponse.expiresIn ● Int! non-null scalar​

How many seconds the access token lasts.

CustomerAuthResponse.refreshToken ● String! non-null scalar​

The token to get a new access token.

CustomerAuthResponse.sessionToken ● String scalar​

The token that identifies the session.

CustomerAuthResponse.tokenType ● String! non-null scalar​

The kind of token, for example Bearer.

CustomerAuthResponse.user ● CustomerUser! non-null object​

The signed-in customer user.

Returned By​

acceptCustomerInvite mutation ● customerRefreshToken mutation ● verifyCustomerOtp mutation