dauth-context-react 6.7.0 → 6.9.0

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
@@ -167,7 +167,8 @@ async function startPasskeyRegistrationAPI(basePath) {
167
167
  method: "POST",
168
168
  headers: {
169
169
  "Content-Type": "application/json",
170
- "X-CSRF-Token": getCsrfToken()
170
+ "X-CSRF-Token": getCsrfToken(),
171
+ "X-Client-Origin": window.location.origin
171
172
  },
172
173
  credentials: "include"
173
174
  });
@@ -179,7 +180,8 @@ async function finishPasskeyRegistrationAPI(basePath, body) {
179
180
  method: "POST",
180
181
  headers: {
181
182
  "Content-Type": "application/json",
182
- "X-CSRF-Token": getCsrfToken()
183
+ "X-CSRF-Token": getCsrfToken(),
184
+ "X-Client-Origin": window.location.origin
183
185
  },
184
186
  credentials: "include",
185
187
  body: JSON.stringify(body)
@@ -191,7 +193,8 @@ async function startPasskeyAuthAPI(basePath) {
191
193
  const response = await fetch(`${basePath}/passkey/auth-start`, {
192
194
  method: "POST",
193
195
  headers: {
194
- "Content-Type": "application/json"
196
+ "Content-Type": "application/json",
197
+ "X-Client-Origin": window.location.origin
195
198
  },
196
199
  credentials: "include"
197
200
  });
@@ -202,7 +205,8 @@ async function finishPasskeyAuthAPI(basePath, body) {
202
205
  const response = await fetch(`${basePath}/passkey/auth-finish`, {
203
206
  method: "POST",
204
207
  headers: {
205
- "Content-Type": "application/json"
208
+ "Content-Type": "application/json",
209
+ "X-Client-Origin": window.location.origin
206
210
  },
207
211
  credentials: "include",
208
212
  body: JSON.stringify(body)