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 CHANGED
@@ -66,6 +66,8 @@ interface IPasskeyCredential {
66
66
  name?: string;
67
67
  deviceType: 'singleDevice' | 'multiDevice';
68
68
  backedUp: boolean;
69
+ platform?: string | null;
70
+ browser?: string | null;
69
71
  createdAt: string;
70
72
  lastUsedAt?: string;
71
73
  }
package/dist/index.d.ts CHANGED
@@ -66,6 +66,8 @@ interface IPasskeyCredential {
66
66
  name?: string;
67
67
  deviceType: 'singleDevice' | 'multiDevice';
68
68
  backedUp: boolean;
69
+ platform?: string | null;
70
+ browser?: string | null;
69
71
  createdAt: string;
70
72
  lastUsedAt?: string;
71
73
  }
package/dist/index.js CHANGED
@@ -184,7 +184,10 @@ async function finishPasskeyRegistrationAPI(basePath, body) {
184
184
  "X-Client-Origin": window.location.origin
185
185
  },
186
186
  credentials: "include",
187
- body: JSON.stringify(body)
187
+ body: JSON.stringify({
188
+ ...body,
189
+ clientUserAgent: typeof navigator !== "undefined" ? navigator.userAgent : void 0
190
+ })
188
191
  });
189
192
  const data = await response.json();
190
193
  return { response, data };