@micha.bigler/ui-core-micha 1.4.17 → 1.4.18
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/auth/authApi.js +3 -3
- package/package.json +1 -1
- package/src/auth/authApi.jsx +4 -5
package/dist/auth/authApi.js
CHANGED
|
@@ -13,9 +13,8 @@ function bufferToBase64URL(buffer) {
|
|
|
13
13
|
return base64.replace(/\+/g, '-').replace(/\//g, '_').replace(/=/g, '');
|
|
14
14
|
}
|
|
15
15
|
function serializeCredential(credential) {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
16
|
+
// Wir nutzen IMMER die manuelle Serialisierung, um sicherzugehen,
|
|
17
|
+
// dass alles Base64URL-kodiert ist (kompatibel mit Allauth).
|
|
19
18
|
const p = {
|
|
20
19
|
id: credential.id,
|
|
21
20
|
rawId: bufferToBase64URL(credential.rawId),
|
|
@@ -36,6 +35,7 @@ function serializeCredential(credential) {
|
|
|
36
35
|
if (credential.response.userHandle) {
|
|
37
36
|
p.response.userHandle = bufferToBase64URL(credential.response.userHandle);
|
|
38
37
|
}
|
|
38
|
+
// Extension Results direkt übernehmen, falls vorhanden
|
|
39
39
|
if (typeof credential.getClientExtensionResults === 'function') {
|
|
40
40
|
p.clientExtensionResults = credential.getClientExtensionResults();
|
|
41
41
|
}
|
package/package.json
CHANGED
package/src/auth/authApi.jsx
CHANGED
|
@@ -15,10 +15,8 @@ function bufferToBase64URL(buffer) {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
function serializeCredential(credential) {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
18
|
+
// Wir nutzen IMMER die manuelle Serialisierung, um sicherzugehen,
|
|
19
|
+
// dass alles Base64URL-kodiert ist (kompatibel mit Allauth).
|
|
22
20
|
const p = {
|
|
23
21
|
id: credential.id,
|
|
24
22
|
rawId: bufferToBase64URL(credential.rawId),
|
|
@@ -43,7 +41,8 @@ function serializeCredential(credential) {
|
|
|
43
41
|
if (credential.response.userHandle) {
|
|
44
42
|
p.response.userHandle = bufferToBase64URL(credential.response.userHandle);
|
|
45
43
|
}
|
|
46
|
-
|
|
44
|
+
|
|
45
|
+
// Extension Results direkt übernehmen, falls vorhanden
|
|
47
46
|
if (typeof credential.getClientExtensionResults === 'function') {
|
|
48
47
|
p.clientExtensionResults = credential.getClientExtensionResults();
|
|
49
48
|
}
|