onairos 0.1.262 → 0.1.264
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/components/OthentButton.js +12 -12
- package/dist/onairos.bundle.js +1 -1
- package/dist/onairos.bundle.js.map +1 -1
- package/dist/onairos.js +18 -33
- package/package.json +1 -1
- package/src/components/OthentButton.jsx +12 -12
- package/src/onairos.jsx +19 -33
|
@@ -47,19 +47,19 @@ function OthentButton(_ref) {
|
|
|
47
47
|
throw new Error('Othent connection failed');
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
// Get hashed sub and pin
|
|
51
|
-
const sha256 = await loadSha256();
|
|
52
|
-
const hashedOthentSub = sha256(userDetails.sub).toString();
|
|
53
|
-
const encryptedPin = (await (
|
|
54
|
-
onLoginSuccess(await (
|
|
50
|
+
// // Get hashed sub and pin
|
|
51
|
+
// const sha256 = await loadSha256();
|
|
52
|
+
// const hashedOthentSub = sha256(userDetails.sub).toString();
|
|
53
|
+
// const encryptedPin = (await getPin(hashedOthentSub)).pin;
|
|
54
|
+
// onLoginSuccess(await getPin(hashedOthentSub)).username;
|
|
55
55
|
|
|
56
|
-
// Call onSuccess with Othent details
|
|
57
|
-
await onSuccess({
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
});
|
|
56
|
+
// // Call onSuccess with Othent details
|
|
57
|
+
// await onSuccess({
|
|
58
|
+
// type: 'othent',
|
|
59
|
+
// encryptedPin: encryptedPin,
|
|
60
|
+
// hashedOthentSub:hashedOthentSub,
|
|
61
|
+
// userDetails
|
|
62
|
+
// });
|
|
63
63
|
} catch (error) {
|
|
64
64
|
console.error('Othent login failed:', error);
|
|
65
65
|
} finally {
|