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.
@@ -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 (0, _getPin.default)(hashedOthentSub)).pin;
54
- onLoginSuccess(await (0, _getPin.default)(hashedOthentSub)).username;
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
- type: 'othent',
59
- encryptedPin: encryptedPin,
60
- hashedOthentSub: hashedOthentSub,
61
- userDetails
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 {