@authly/sdk 1.2.4 → 1.2.5
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.
|
@@ -199,6 +199,7 @@ class AuthlyClient {
|
|
|
199
199
|
"Content-Type": "application/x-www-form-urlencoded",
|
|
200
200
|
},
|
|
201
201
|
body: new URLSearchParams(body).toString(),
|
|
202
|
+
credentials: "include",
|
|
202
203
|
});
|
|
203
204
|
if (!response.success) {
|
|
204
205
|
return null;
|
|
@@ -220,6 +221,7 @@ class AuthlyClient {
|
|
|
220
221
|
headers: {
|
|
221
222
|
Authorization: `Bearer ${currentBuffer}`,
|
|
222
223
|
},
|
|
224
|
+
credentials: "include",
|
|
223
225
|
});
|
|
224
226
|
};
|
|
225
227
|
let response = await fetchInfo(token);
|
|
@@ -291,6 +293,7 @@ class AuthlyClient {
|
|
|
291
293
|
"Content-Type": "application/x-www-form-urlencoded",
|
|
292
294
|
},
|
|
293
295
|
body: new URLSearchParams(body).toString(),
|
|
296
|
+
credentials: "include",
|
|
294
297
|
});
|
|
295
298
|
if (!response.success) {
|
|
296
299
|
throw new Error(response.error?.message || "Failed to exchange code for token");
|