feat: pass role, agent type, and auth mode to social login providers and repository
This commit is contained in:
@@ -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,
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user