@authenty/authapi-types 1.0.19 → 1.0.20
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.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +1 -1
- package/src/index.ts +2 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -345,6 +345,7 @@ var AuthApi;
|
|
|
345
345
|
fetchOptions.body = JSON.stringify(params);
|
|
346
346
|
}
|
|
347
347
|
response = await fetch(url, fetchOptions);
|
|
348
|
+
result.headers = response.headers;
|
|
348
349
|
// Atualiza tokens se presentes nos headers
|
|
349
350
|
const newToken = response.headers.get('authorization');
|
|
350
351
|
if (newToken) {
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -383,6 +383,7 @@ export namespace AuthApi {
|
|
|
383
383
|
reqStat: number;
|
|
384
384
|
success: boolean;
|
|
385
385
|
data: T;
|
|
386
|
+
headers?: Headers;
|
|
386
387
|
msg: string;
|
|
387
388
|
}
|
|
388
389
|
|
|
@@ -659,7 +660,7 @@ export namespace AuthApi {
|
|
|
659
660
|
}
|
|
660
661
|
|
|
661
662
|
response = await fetch(url, fetchOptions);
|
|
662
|
-
|
|
663
|
+
result.headers = response.headers;
|
|
663
664
|
// Atualiza tokens se presentes nos headers
|
|
664
665
|
const newToken = response.headers.get('authorization');
|
|
665
666
|
if (newToken) {
|