@authing/guard-shim-react18 5.3.4 → 5.3.5-alpha.2

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.
@@ -7,6 +7,7 @@ export declare class Guard {
7
7
  private then;
8
8
  private publicConfig?;
9
9
  private root?;
10
+ private storage;
10
11
  constructor(options: GuardOptions);
11
12
  private adaptOptions;
12
13
  private getRequestHost;
@@ -36,6 +36,11 @@ export interface GuardOptions extends GuardProps {
36
36
  isSSO?: boolean;
37
37
  config?: Partial<IGuardConfig>;
38
38
  style?: CSSProperties;
39
+ storage?: {
40
+ getItem: (key: string) => any;
41
+ setItem: (key: string, value: string) => any;
42
+ removeItem: (key: string) => any;
43
+ } | Storage;
39
44
  }
40
45
  export interface StartWithRedirectOptions {
41
46
  codeChallengeMethod?: CodeChallengeMethod;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/guard-shim-react18",
3
- "version": "5.3.4",
3
+ "version": "5.3.5-alpha.2",
4
4
  "description": "Guard shim for react18",
5
5
  "module": "dist/esm/guard.min.js",
6
6
  "types": "dist/typings/index.d.ts",