@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 CHANGED
@@ -334,6 +334,7 @@ export declare namespace AuthApi {
334
334
  reqStat: number;
335
335
  success: boolean;
336
336
  data: T;
337
+ headers?: Headers;
337
338
  msg: string;
338
339
  };
339
340
  namespace auth {
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authenty/authapi-types",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "description": "Shared types for Authenty API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
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) {