@etsoo/appscript 1.1.82 → 1.1.83

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.
@@ -27,7 +27,7 @@ export interface RefreshTokenProps<D extends {}> {
27
27
  /**
28
28
  * Callback
29
29
  */
30
- callback?: (result: RefreshTokenResult) => void;
30
+ callback?: (result: RefreshTokenResult, successData?: string) => void;
31
31
  /**
32
32
  * Data to pass
33
33
  */
@@ -699,7 +699,7 @@ class CoreApp {
699
699
  */
700
700
  async refreshToken(props) {
701
701
  if (props && props.callback)
702
- props.callback(true);
702
+ props.callback(true, undefined);
703
703
  return true;
704
704
  }
705
705
  /**
@@ -27,7 +27,7 @@ export interface RefreshTokenProps<D extends {}> {
27
27
  /**
28
28
  * Callback
29
29
  */
30
- callback?: (result: RefreshTokenResult) => void;
30
+ callback?: (result: RefreshTokenResult, successData?: string) => void;
31
31
  /**
32
32
  * Data to pass
33
33
  */
@@ -696,7 +696,7 @@ export class CoreApp {
696
696
  */
697
697
  async refreshToken(props) {
698
698
  if (props && props.callback)
699
- props.callback(true);
699
+ props.callback(true, undefined);
700
700
  return true;
701
701
  }
702
702
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/appscript",
3
- "version": "1.1.82",
3
+ "version": "1.1.83",
4
4
  "description": "Applications shared TypeScript framework",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -61,7 +61,7 @@ export interface RefreshTokenProps<D extends {}> {
61
61
  /**
62
62
  * Callback
63
63
  */
64
- callback?: (result: RefreshTokenResult) => void;
64
+ callback?: (result: RefreshTokenResult, successData?: string) => void;
65
65
 
66
66
  /**
67
67
  * Data to pass
@@ -1321,7 +1321,7 @@ export abstract class CoreApp<
1321
1321
  * @param props Props
1322
1322
  */
1323
1323
  async refreshToken<D extends {} = {}>(props?: RefreshTokenProps<D>) {
1324
- if (props && props.callback) props.callback(true);
1324
+ if (props && props.callback) props.callback(true, undefined);
1325
1325
  return true;
1326
1326
  }
1327
1327