sunuid-sdk 1.0.51 → 1.0.53
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/README.md +429 -193
- package/dist/sunuid-sdk.esm.js +5 -5
- package/dist/sunuid-sdk.esm.js.map +1 -1
- package/dist/sunuid-sdk.js +5 -5
- package/dist/sunuid-sdk.js.map +1 -1
- package/dist/sunuid-sdk.min.js +1 -1
- package/dist/sunuid-sdk.min.js.map +1 -1
- package/docs/INTEGRATION_GUIDE.md +334 -0
- package/docs/SECURITY_GUIDE.md +369 -0
- package/examples/.htaccess.example +190 -0
- package/examples/README.md +192 -0
- package/examples/auto-code.js +234 -0
- package/examples/auto-integration.html +337 -0
- package/examples/callback-example.html +232 -0
- package/examples/config-example.js +41 -0
- package/examples/demo.html +323 -0
- package/examples/env.example +83 -0
- package/examples/minimal-code.js +147 -0
- package/examples/minimal-integration.html +157 -0
- package/examples/no-loop-example.html +250 -0
- package/examples/partner-name-config.js +123 -0
- package/examples/production-config.js +60 -0
- package/examples/secure-init.php +154 -0
- package/examples/secure-integration-example.js +186 -0
- package/examples/secure-integration.html +410 -0
- package/examples/simple-kyc.html +95 -0
- package/examples/simple-login.html +96 -0
- package/examples/test-partner-name.html +251 -0
- package/examples/test-production.html +200 -0
- package/examples/universal-kyc.html +199 -0
- package/examples/universal-login.html +148 -0
- package/package.json +24 -10
package/dist/sunuid-sdk.esm.js
CHANGED
|
@@ -304,9 +304,9 @@ function _unsupportedIterableToArray(r, a) {
|
|
|
304
304
|
secureInit: false,
|
|
305
305
|
secureInitUrl: function (_window$SunuIDConfig2, _window$SunuIDConfig3) {
|
|
306
306
|
if ((_window$SunuIDConfig2 = window.SunuIDConfig) !== null && _window$SunuIDConfig2 !== void 0 && (_window$SunuIDConfig2 = _window$SunuIDConfig2.apiUrl) !== null && _window$SunuIDConfig2 !== void 0 && _window$SunuIDConfig2.includes('api.sunuid.fayma.sn')) {
|
|
307
|
-
return 'https://api.sunuid.fayma.sn/secure-init
|
|
307
|
+
return 'https://api.sunuid.fayma.sn/secure-init';
|
|
308
308
|
}
|
|
309
|
-
return ((_window$SunuIDConfig3 = window.SunuIDConfig) === null || _window$SunuIDConfig3 === void 0 || (_window$SunuIDConfig3 = _window$SunuIDConfig3.apiUrl) === null || _window$SunuIDConfig3 === void 0 ? void 0 : _window$SunuIDConfig3.replace('/api', '')) + '/secure-init
|
|
309
|
+
return ((_window$SunuIDConfig3 = window.SunuIDConfig) === null || _window$SunuIDConfig3 === void 0 || (_window$SunuIDConfig3 = _window$SunuIDConfig3.apiUrl) === null || _window$SunuIDConfig3 === void 0 ? void 0 : _window$SunuIDConfig3.replace('/api', '')) + '/secure-init' || 'https://api.sunuid.fayma.sn/secure-init';
|
|
310
310
|
}(),
|
|
311
311
|
token: null,
|
|
312
312
|
// Configuration pour forcer l'utilisation du serveur distant
|
|
@@ -474,7 +474,7 @@ function _unsupportedIterableToArray(r, a) {
|
|
|
474
474
|
return _doInit;
|
|
475
475
|
}()
|
|
476
476
|
/**
|
|
477
|
-
* Initialisation sécurisée via
|
|
477
|
+
* Initialisation sécurisée via endpoint serveur
|
|
478
478
|
*/
|
|
479
479
|
)
|
|
480
480
|
}, {
|
|
@@ -1559,7 +1559,7 @@ function _unsupportedIterableToArray(r, a) {
|
|
|
1559
1559
|
}
|
|
1560
1560
|
|
|
1561
1561
|
/**
|
|
1562
|
-
* Générer un QR code personnalisé avec
|
|
1562
|
+
* Générer un QR code personnalisé avec bibliothèque locale
|
|
1563
1563
|
*/
|
|
1564
1564
|
}, {
|
|
1565
1565
|
key: "generateCustomQRCode",
|
|
@@ -1691,7 +1691,7 @@ function _unsupportedIterableToArray(r, a) {
|
|
|
1691
1691
|
return generateQRClientSide;
|
|
1692
1692
|
}()
|
|
1693
1693
|
/**
|
|
1694
|
-
* Générer un QR code via endpoint
|
|
1694
|
+
* Générer un QR code via endpoint serveur (fallback)
|
|
1695
1695
|
*/
|
|
1696
1696
|
)
|
|
1697
1697
|
}, {
|