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
Argument
Type
Description
userID
String
The user's ID
Available Fields
Field
Type
Description
accessToken
String
Access token that is passed in the header
refreshToken
String
The refresh token that is used to obtain another access_token when the current one expires
Example
mutation {
login(userId: "305c5386-1e1e-4d01-019f-521b2d94e9e4") {
accessToken
refreshToken
}
}
Last updated
Was this helpful?