Schema Documentation
LoginPayload
Description
The payload for the login mutation.
Fields
Field Name | Description |
---|---|
authToken - String | JWT Token that can be used in future requests for Authentication |
clientMutationId - String | If a 'clientMutationId' input is provided to the mutation, it will be returned as output on the mutation. This ID can be used by the client to track the progress of mutations and catch possible duplicate mutation submissions. |
customer - Customer | Customer object of authenticated user. |
refreshToken - String | A JWT token that can be used in future requests to get a refreshed jwtAuthToken. If the refresh token used in a request is revoked or otherwise invalid, a valid Auth token will NOT be issued in the response headers. |
sessionToken - String | A JWT token that can be used in future requests to for WooCommerce session identification |
user - User | The user that was logged in |
Example
{"authToken":"xyz789","clientMutationId":"abc123","customer":Customer,"refreshToken":"xyz789","sessionToken":"abc123","user":User}