dauth-context-react 6.8.0 → 6.9.1
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/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dauth.api.ts +5 -1
- package/src/api/interfaces/dauth.api.responses.ts +2 -0
- package/src/interfaces.ts +2 -0
package/dist/index.mjs
CHANGED
|
@@ -165,7 +165,10 @@ async function finishPasskeyRegistrationAPI(basePath, body) {
|
|
|
165
165
|
"X-Client-Origin": window.location.origin
|
|
166
166
|
},
|
|
167
167
|
credentials: "include",
|
|
168
|
-
body: JSON.stringify(
|
|
168
|
+
body: JSON.stringify({
|
|
169
|
+
...body,
|
|
170
|
+
clientUserAgent: typeof navigator !== "undefined" ? navigator.userAgent : void 0
|
|
171
|
+
})
|
|
169
172
|
});
|
|
170
173
|
const data = await response.json();
|
|
171
174
|
return { response, data };
|