dauth-context-react 6.9.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.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(body)
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 };