mutation

loginWithToken

Login user using a token for authentication.
Arguments
tokenRequestBodySchemaInput
TokenRequestBodySchemaInput
Describes the request structure to login or register using a token.
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 loginWithToken(
2 $tokenRequestBodySchemaInput: TokenRequestBodySchemaInput
3) {
4 loginWithToken(tokenRequestBodySchemaInput: $tokenRequestBodySchemaInput) {
5 register_token
6 request_id
7 user {
8 id
9 account_type
10 active
11 application_id
12 created_at
13 dob
14 first_name
15 gender
16 last_name
17 meta
18 profile_pic_url
19 updated_at
20 user_id
21 username
22 external_id
23 rr_id
24 }
25 }
26}
Try it
Input Variables
1{
2 "tokenRequestBodySchemaInput": {
3 "token": "token"
4 }
5}
Response
1{
2 "loginWithToken": {
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}