mutation

forgotPassword

Reset a password using the code sent on email or sms the login.
Arguments
forgotPasswordRequestSchemaInput
ForgotPasswordRequestSchemaInput
Describes the request structure to initiate the password recovery process for the user.
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 forgotPassword(
2 $forgotPasswordRequestSchemaInput: ForgotPasswordRequestSchemaInput
3) {
4 forgotPassword(
5 forgotPasswordRequestSchemaInput: $forgotPasswordRequestSchemaInput
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 "forgotPasswordRequestSchemaInput": {
3 "code": "code",
4 "password": "password"
5 }
6}
Response
1{
2 "forgotPassword": {
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}