@sambath999/localize-token 12.3.9 → 12.4.0

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.
@@ -1,4 +1,8 @@
1
1
  import { LocalizeTokenStorage } from "./localize.token.storage";
2
+ interface ILocalizeTokenTokens {
3
+ name: string;
4
+ requestUrl?: string;
5
+ }
2
6
  export interface ILocalizeTokenConfig {
3
7
  /**
4
8
  * The main domain of the application to set the cookies to be available for cross application with subdomains.
@@ -6,14 +10,10 @@ export interface ILocalizeTokenConfig {
6
10
  * Default is location.hostname (current domain) and automatically set extracted main domain if it is subdomain.
7
11
  */
8
12
  mainDomain?: string;
9
- authTokenName?: string;
10
- refreshTokenName?: string;
11
- /**
12
- * Flag to determine if the tenant token is required.
13
- */
14
- needTenant: boolean;
15
13
  isProduction: boolean;
16
- revokeTokenUrl: string;
14
+ authToken?: ILocalizeTokenTokens;
15
+ refreshToken?: ILocalizeTokenTokens;
16
+ tenantToken?: ILocalizeTokenTokens;
17
17
  }
18
18
  export declare class LocalizeToken {
19
19
  static readonly storage: LocalizeTokenStorage;
@@ -38,3 +38,4 @@ export declare function waitFor(milliseconds: number, when?: boolean): Promise<v
38
38
  */
39
39
  export declare function waitUntil(when: () => any, intervalNumber?: number): Promise<void>;
40
40
  export declare function extractMainDomain(subdomain?: string): string;
41
+ export {};
@@ -24,10 +24,10 @@ export declare class LocalizeTokenService implements OnDestroy {
24
24
  set accessToken(value: string | undefined);
25
25
  get isRevokingToken(): boolean;
26
26
  set isRevokingToken(value: boolean);
27
- tenantToken(name: string | undefined): string;
27
+ tenantToken(): string;
28
28
  private storageGet;
29
29
  private storageSet;
30
- tokensValid(tenantTokenName?: string): boolean;
30
+ tokensValid(): boolean;
31
31
  decodeToken: (token: string) => JwtPayload;
32
32
  get decodeRefreshToken(): JwtPayload;
33
33
  private throwIfNotInitialized;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sambath999/localize-token",
3
- "version": "12.3.9",
3
+ "version": "12.4.0",
4
4
  "description": "localize token client app",
5
5
  "type": "module",
6
6
  "repository": {