@dfns/sdk-react-native 0.3.3-alpha.1 → 0.3.4
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/index.js +5 -0
- package/package.json +3 -3
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,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dfns/sdk-react-native",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"buffer": "6.0.3",
|
|
6
6
|
"cross-fetch": "3.1.6",
|
|
7
|
-
"react-native": "0.73.
|
|
7
|
+
"react-native": "0.73.6",
|
|
8
8
|
"react-native-passkey": "^2.1.1",
|
|
9
9
|
"uuid": "9.0.0"
|
|
10
10
|
},
|
|
11
11
|
"peerDependencies": {
|
|
12
|
-
"@dfns/sdk": "0.3.
|
|
12
|
+
"@dfns/sdk": "0.3.4"
|
|
13
13
|
},
|
|
14
14
|
"main": "./index.js",
|
|
15
15
|
"type": "commonjs"
|