socialLogin method
Implementation
Future<bool> socialLogin(String token, String type) async {
try {
_dio.options.headers['content-Type'] = 'application/json';
var response =
await _dio.post('$baseUrl/frontegg/identity/resources/auth/v1/user/sso/$type/postlogin?access_token=$token');
cookies = response.headers.map['set-cookie'];
return response.statusCode == 200;
} catch (e) {
if (e is DioError) {
rethrow;
}
throw tr('invalid_authentication');
}
}