@dfns/sdk-react-native 0.3.3-alpha.1 → 0.3.3

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 +5 -0
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -11,6 +11,8 @@ const b64StandardToUrlSafe = (standard) => {
11
11
  const b64UrlSafeToStandard = (urlSafe) => {
12
12
  return (urlSafe + '==='.slice((urlSafe.length + 3) % 4)).replace(/-/g, '+').replace(/_/g, '/');
13
13
  };
14
+ // react-native-passkey is incorrect encoding the credId with standard base64 for
15
+ // some reason. we have to undo that.
14
16
  class AndroidPasskeys {
15
17
  constructor(options) {
16
18
  this.options = options;
@@ -68,6 +70,9 @@ class AndroidPasskeys {
68
70
  };
69
71
  }
70
72
  }
73
+ // react-native-passkey's iOS implementation is not WebAuthn spec compliant. all values
74
+ // are standard base64 encoded instead of base64url encoded. we have to convert the
75
+ // encoding in both directions.
71
76
  class iOsPasskeys {
72
77
  constructor(options) {
73
78
  this.options = options;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dfns/sdk-react-native",
3
- "version": "0.3.3-alpha.1",
3
+ "version": "0.3.3",
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.3.2"
12
+ "@dfns/sdk": "0.3.3"
13
13
  },
14
14
  "main": "./index.js",
15
15
  "type": "commonjs"