Login User

Use this mutation to login a user.

Use the login mutation to obtain a JWT authentication for third parties only. This sends a user_id and returns an access token and a refresh token.

Requirements

  • To have the userId which will indicate the user who will be logged in.

Required Argument

Available Fields

Example

mutation {
  login(userId: "305c5386-1e1e-4d01-019f-521b2d94e9e4") {
    accessToken
    refreshToken
  }
}

Last updated