is_onboarded status.200 - data contains access_token, refresh_token, access_token_expires_in, refresh_token_expires_in (epoch seconds), is_onboarded (bool - route to onboarding if false), name, email.406 - invalid or expired Google token | 422 - missing fields{
"current_lat": 19.076,
"current_lng": 72.8777,
"device_id": "device_a1b2c3d4e5",
"id_token": "eyJhbGciOiJSUzI1NiIsImtpZCI6Ij..."
}curl --location 'https://uat-api.hastaai.in/api/v1/auth/google' \
--header 'Content-Type: application/json' \
--data '{
"current_lat": 19.076,
"current_lng": 72.8777,
"device_id": "device_a1b2c3d4e5",
"id_token": "eyJhbGciOiJSUzI1NiIsImtpZCI6Ij..."
}'{
"success": true,
"message": "Login successful",
"data": {
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InVzZXJAZXhhbXBsZS5jb20iLCJyb2xlIjoiYXV0aGVudGljYXRlZF91c2VyIiwidHlwZSI6InVzZXJfYXV0aF90b2tlbiIsImV4cCI6MTc0Njk2NTQwMH0.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
"access_token_expires_in": 100,
"refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InVzZXJAZXhhbXBsZS5jb20iLCJyb2xlIjoiYXV0aGVudGljYXRlZF91c2VyIiwidHlwZSI6InVzZXJfcmVmcmVzaF90b2tlbiIsImV4cCI6MTc1MzY1NzgwMH0.abc123def456ghi789",
"refresh_token_expires_in": 200,
"is_onboarded": false,
"name": "Test User",
"email": "user@example.com"
}
}