@dfns/sdk-react-native 0.6.0-rc.1 → 0.6.0-rc.2

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.
Files changed (2) hide show
  1. package/index.js +0 -9
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -22,7 +22,6 @@ class AndroidPasskeys {
22
22
  }
23
23
  }
24
24
  async sign(challenge) {
25
- checkSpecifiedRpIdIsWhitelisted(this.conf.relyingParty.id, challenge.allowedRelyingParties);
26
25
  const request = {
27
26
  challenge: challenge.challenge,
28
27
  allowCredentials: challenge.allowCredentials.webauthn,
@@ -43,7 +42,6 @@ class AndroidPasskeys {
43
42
  };
44
43
  }
45
44
  async create(challenge) {
46
- checkSpecifiedRpIdIsWhitelisted(this.conf.relyingParty.id, challenge.allowedRelyingParties);
47
45
  const request = {
48
46
  challenge: challenge.challenge,
49
47
  pubKeyCredParams: challenge.pubKeyCredParams,
@@ -83,7 +81,6 @@ class iOSPasskeys {
83
81
  }
84
82
  }
85
83
  async sign(challenge) {
86
- checkSpecifiedRpIdIsWhitelisted(this.conf.relyingParty.id, challenge.allowedRelyingParties);
87
84
  const request = {
88
85
  challenge: b64UrlSafeToStandard(challenge.challenge),
89
86
  allowCredentials: challenge.allowCredentials.webauthn.map(({ id, type }) => ({
@@ -107,7 +104,6 @@ class iOSPasskeys {
107
104
  };
108
105
  }
109
106
  async create(challenge) {
110
- checkSpecifiedRpIdIsWhitelisted(this.conf.relyingParty.id, challenge.allowedRelyingParties);
111
107
  const request = {
112
108
  challenge: b64UrlSafeToStandard(challenge.challenge),
113
109
  pubKeyCredParams: challenge.pubKeyCredParams,
@@ -157,8 +153,3 @@ class PasskeysSigner {
157
153
  }
158
154
  }
159
155
  exports.PasskeysSigner = PasskeysSigner;
160
- const checkSpecifiedRpIdIsWhitelisted = (rpId, allowedRpIds) => {
161
- if (!allowedRpIds.includes(rpId)) {
162
- throw new sdk_1.DfnsError(-1, `The specified relying party id is not whitelisted in the Dfns organisation. Ask your Dfns admin to whitelist rpId "${rpId}" first, or use a whitelisted one: (${allowedRpIds.join(', ')})`);
163
- }
164
- };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dfns/sdk-react-native",
3
- "version": "0.6.0-rc.1",
3
+ "version": "0.6.0-rc.2",
4
4
  "dependencies": {
5
5
  "buffer": "6.0.3",
6
6
  "cross-fetch": "3.1.6",
@@ -9,7 +9,7 @@
9
9
  "uuid": "9.0.0"
10
10
  },
11
11
  "peerDependencies": {
12
- "@dfns/sdk": "0.6.0-rc.1"
12
+ "@dfns/sdk": "0.6.0-rc.2"
13
13
  },
14
14
  "main": "./index.js",
15
15
  "type": "commonjs"