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 +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +8 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dauth.api.ts +4 -0
- package/src/api/interfaces/dauth.api.responses.ts +2 -0
- package/src/interfaces.ts +2 -0
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
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)
|