feat: pass role, agent type, and auth mode to social login providers and repository

This commit is contained in:
pradeepkumar
2026-03-31 22:45:16 +05:30
parent c2c1b51777
commit 26611274d5
5 changed files with 65 additions and 11 deletions

View File

@@ -137,6 +137,9 @@ class AuthRepository {
required String email,
String? name,
String? avatar,
String? role,
String? agentTypeId,
String mode = 'signup',
}) async {
try {
final response = await _dio.post(
@@ -145,8 +148,11 @@ class AuthRepository {
'provider': provider,
'providerId': providerId,
'email': email,
'mode': mode,
if (name != null) 'name': name,
if (avatar != null) 'avatar': avatar,
if (role != null) 'role': role,
if (agentTypeId != null) 'agentTypeId': agentTypeId,
},
);