mutation

loginWithEmailAndPassword

Allow login using an email and password combination.
Arguments
passwordLoginRequestSchemaInput
PasswordLoginRequestSchemaInput
Describes the request structure to login or register using an email address and password.
Response
register_token
String
A token used for registration purposes.
request_id
String
A random uuid string used to track the send OTP response.
Describes the user details structure.
Mutation
1mutation loginWithEmailAndPassword(
2 $passwordLoginRequestSchemaInput: PasswordLoginRequestSchemaInput
3) {
4 loginWithEmailAndPassword(
5 passwordLoginRequestSchemaInput: $passwordLoginRequestSchemaInput
6 ) {
7 register_token
8 request_id
9 user {
10 id
11 account_type
12 active
13 application_id
14 created_at
15 dob
16 first_name
17 gender
18 last_name
19 meta
20 profile_pic_url
21 updated_at
22 user_id
23 username
24 external_id
25 rr_id
26 }
27 }
28}
Try it
Input Variables
1{
2 "passwordLoginRequestSchemaInput": {
3 "captcha_code": "captcha_code",
4 "password": "password",
5 "username": "username"
6 }
7}
Response
1{
2 "loginWithEmailAndPassword": {
3 "register_token": "register_token",
4 "request_id": "request_id",
5 "user": {
6 "id": "08a16b83-9094-4e89-8c05-2ccadd5c1c7e",
7 "account_type": "account_type",
8 "active": true,
9 "application_id": "application_id",
10 "created_at": "created_at",
11 "dob": "dob",
12 "first_name": "first_name",
13 "gender": "gender",
14 "last_name": "last_name",
15 "meta": {},
16 "profile_pic_url": "profile_pic_url",
17 "updated_at": "updated_at",
18 "user_id": "user_id",
19 "username": "username",
20 "external_id": "external_id",
21 "rr_id": "rr_id"
22 }
23 }
24}