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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dauth-context-react",
3
- "version": "6.9.0",
3
+ "version": "6.9.1",
4
4
  "description": "React provider and hook for passwordless authentication via the Dauth service (BFF pattern with httpOnly cookies)",
5
5
  "license": "MIT",
6
6
  "author": "David T. Pizarro Frick",
@@ -133,7 +133,11 @@ export async function finishPasskeyRegistrationAPI(
133
133
  'X-Client-Origin': window.location.origin,
134
134
  },
135
135
  credentials: 'include',
136
- body: JSON.stringify(body),
136
+ body: JSON.stringify({
137
+ ...body,
138
+ clientUserAgent:
139
+ typeof navigator !== 'undefined' ? navigator.userAgent : undefined,
140
+ }),
137
141
  });
138
142
  const data = await response.json();
139
143
  return { response, data };