Are you an LLM? You can read better optimized documentation at /operations/socialLoginApi.md for this page in Markdown format
API-Based Social Login (Mobile)
POST
/auth/social/{provider}/login-api
⚠️ BETA FEATURE - Authenticate using social provider access token or ID token. Designed for mobile apps that handle OAuth flow client-side.
Parameters
Path Parameters
provider*
Type
Requiredstring
Valid values
"google""github""facebook""apple""discord""microsoft"Request Body
application/json
JSON "idToken": "eyJhbGciOiJSUzI1NiIs..."
{
}
Responses
Authentication successful
application/json
JSON "success": true, "user": { "id": "usr_abc123", "email": "user@example.com", "name": "John", "last_name": "Doe", "user_name": "johndoe", "user_type": "customer", "picture": "https://storage.pubflow.com/users/usr_abc123/picture.jpg", "phone": "+1234567890", "is_verified": true, "two_factor": false, "created_at": "2025-12-07T10:00:00Z", "updated_at": "2025-12-07T10:00:00Z", "first_time": true, "is_business": true, "biz_name": "string", "biz_country": "string", "biz_state": "string", "biz_position": "string", "gdpr_consent": true, "gdpr_consent_at": "string", "gdpr_consent_version": "string", "ccpa_applies": true, "ccpa_opt_out": true, "ccpa_opt_out_at": "string", "privacy_region": "string", "biz_postal_code": "string" }, "sessionId": "ses_xyz789", "expiresAt": "string", "loginType": "social_auth_api", "provider": "google"
{
}