mutation

loginWithGoogleAndroid

Enable android users to log in to the system using their facebook accounts.
Arguments
oAuthRequestSchemaInput
OAuthRequestSchemaInput
Describes the request structure to login or register using facebook/google account credentials.
platform
String
ID of the application.
Response
register_token
String
Unique registration token for user.
Describes the user details structure.
user_exists
Boolean
Boolean which specifies if user is registered.
Mutation
1mutation loginWithGoogleAndroid(
2 $oAuthRequestSchemaInput: OAuthRequestSchemaInput
3 $platform: String
4) {
5 loginWithGoogleAndroid(
6 oAuthRequestSchemaInput: $oAuthRequestSchemaInput
7 platform: $platform
8 ) {
9 register_token
10 user {
11 id
12 account_type
13 active
14 application_id
15 created_at
16 dob
17 first_name
18 gender
19 last_name
20 meta
21 profile_pic_url
22 updated_at
23 user_id
24 username
25 external_id
26 rr_id
27 }
28 user_exists
29 }
30}
Try it
Input Variables
1{
2 "oAuthRequestSchemaInput": {
3 "is_signed_in": true,
4 "oauth2": {
5 "access_token": "access_token",
6 "expiry": 42,
7 "refresh_token": "refresh_token"
8 },
9 "profile": {
10 "email": "test-email@yourcompany.com",
11 "first_name": "first_name",
12 "full_name": "full_name",
13 "id": "08a16b83-9094-4e89-8c05-2ccadd5c1c7e",
14 "image": "image",
15 "last_name": "last_name"
16 }
17 },
18 "platform": "platform"
19}
Response
1{
2 "loginWithGoogleAndroid": {
3 "register_token": "register_token",
4 "user": {
5 "id": "08a16b83-9094-4e89-8c05-2ccadd5c1c7e",
6 "account_type": "account_type",
7 "active": true,
8 "application_id": "application_id",
9 "created_at": "created_at",
10 "dob": "dob",
11 "first_name": "first_name",
12 "gender": "gender",
13 "last_name": "last_name",
14 "meta": {},
15 "profile_pic_url": "profile_pic_url",
16 "updated_at": "updated_at",
17 "user_id": "user_id",
18 "username": "username",
19 "external_id": "external_id",
20 "rr_id": "rr_id"
21 },
22 "user_exists": true
23 }
24}