Authentication

Besides logging in, all queries and mutations will require authentication.

Authentication is handled with the login mutation. This mutation returns a JWT which is then set via HTTP headers.

1. GraphQL Request

mutation Login {
  login(email: "[email protected]", password: "secure_password") {
    token
  }
}

2. Set Bearer Token via Header

authorization: Bearer [TOKEN_FROM_STEP_ONE]

Possible Errors

401

This error implies the token is expired or malformed. Please request a new token using the login mutation, ensure it matches, and that you are setting the HTTP authentication header correctly in Bearer format.

Last updated