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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dauth-context-react",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.9.0",
|
|
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",
|
package/src/api/dauth.api.ts
CHANGED
|
@@ -113,6 +113,7 @@ export async function startPasskeyRegistrationAPI(
|
|
|
113
113
|
headers: {
|
|
114
114
|
'Content-Type': 'application/json',
|
|
115
115
|
'X-CSRF-Token': getCsrfToken(),
|
|
116
|
+
'X-Client-Origin': window.location.origin,
|
|
116
117
|
},
|
|
117
118
|
credentials: 'include',
|
|
118
119
|
});
|
|
@@ -129,6 +130,7 @@ export async function finishPasskeyRegistrationAPI(
|
|
|
129
130
|
headers: {
|
|
130
131
|
'Content-Type': 'application/json',
|
|
131
132
|
'X-CSRF-Token': getCsrfToken(),
|
|
133
|
+
'X-Client-Origin': window.location.origin,
|
|
132
134
|
},
|
|
133
135
|
credentials: 'include',
|
|
134
136
|
body: JSON.stringify(body),
|
|
@@ -144,6 +146,7 @@ export async function startPasskeyAuthAPI(
|
|
|
144
146
|
method: 'POST',
|
|
145
147
|
headers: {
|
|
146
148
|
'Content-Type': 'application/json',
|
|
149
|
+
'X-Client-Origin': window.location.origin,
|
|
147
150
|
},
|
|
148
151
|
credentials: 'include',
|
|
149
152
|
});
|
|
@@ -159,6 +162,7 @@ export async function finishPasskeyAuthAPI(
|
|
|
159
162
|
method: 'POST',
|
|
160
163
|
headers: {
|
|
161
164
|
'Content-Type': 'application/json',
|
|
165
|
+
'X-Client-Origin': window.location.origin,
|
|
162
166
|
},
|
|
163
167
|
credentials: 'include',
|
|
164
168
|
body: JSON.stringify(body),
|
package/src/interfaces.ts
CHANGED