sunuid-sdk 1.0.46 → 1.0.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/sunuid-sdk.js
CHANGED
|
@@ -2618,16 +2618,22 @@
|
|
|
2618
2618
|
console.log('✅ Format WebSocket détecté, extraction de responseData');
|
|
2619
2619
|
console.log('🔍 Contenu complet de responseData:', websocketData.responseData);
|
|
2620
2620
|
console.log('🔍 Clés disponibles dans responseData:', Object.keys(websocketData.responseData));
|
|
2621
|
+
|
|
2622
|
+
// Les données d'authentification sont dans responseData.data
|
|
2623
|
+
var responseData = websocketData.responseData;
|
|
2624
|
+
var authDataObj = responseData.data || responseData;
|
|
2625
|
+
console.log('🔍 Données d\'authentification dans data:', authDataObj);
|
|
2626
|
+
console.log('🔍 Clés disponibles dans data:', Object.keys(authDataObj));
|
|
2621
2627
|
var authData = {
|
|
2622
|
-
token:
|
|
2623
|
-
session_id:
|
|
2624
|
-
user_id:
|
|
2625
|
-
partner_id:
|
|
2626
|
-
type:
|
|
2627
|
-
timestamp:
|
|
2628
|
-
signature:
|
|
2629
|
-
user_info:
|
|
2630
|
-
redirect_url:
|
|
2628
|
+
token: authDataObj.token || authDataObj.auth_token || authDataObj.jwt_token,
|
|
2629
|
+
session_id: authDataObj.session_id || authDataObj.sessionId || authDataObj.session,
|
|
2630
|
+
user_id: authDataObj.user_id || authDataObj.userId || authDataObj.user,
|
|
2631
|
+
partner_id: authDataObj.partner_id || authDataObj.partnerId || authDataObj.partner,
|
|
2632
|
+
type: authDataObj.type,
|
|
2633
|
+
timestamp: authDataObj.timestamp || responseData.timestamp || websocketData.timestamp,
|
|
2634
|
+
signature: authDataObj.signature,
|
|
2635
|
+
user_info: authDataObj.user_info || authDataObj.userInfo || authDataObj.user_data,
|
|
2636
|
+
redirect_url: authDataObj.redirect_url || authDataObj.redirectUrl || authDataObj.redirect
|
|
2631
2637
|
};
|
|
2632
2638
|
console.log('📋 Données d\'authentification extraites:', authData);
|
|
2633
2639
|
return authData;
|