Schema Documentation
login
Description
Login a user. Request for an authToken and User details in response
Response
Returns a LoginPayload
Arguments
Name | Description |
---|---|
input - LoginInput! | Input for the login mutation |
Example
Query
mutation login($input: LoginInput!){ login(input: $input){ authTokenclientMutationIdcustomer { ...CustomerFragment }refreshTokensessionTokenuser { ...UserFragment } }}
Variables
{"input":LoginInput}
Response
{"data":{"login":{"authToken":"xyz789","clientMutationId":"xyz789","customer":Customer,"refreshToken":"abc123","sessionToken":"abc123","user":User}}}