@iblai/web-utils 1.12.0 → 1.13.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.
- package/dist/auth/index.d.ts +3 -1
- package/dist/auth/index.esm.js +62 -2
- package/dist/auth/index.esm.js.map +1 -1
- package/dist/auth/index.js +63 -1
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/web-utils/src/providers/auth-provider.d.ts +0 -1
- package/dist/auth/web-utils/src/utils/auth.d.ts +2 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.esm.js +161 -122
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +161 -121
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/web-utils/src/providers/auth-provider.d.ts +0 -1
- package/dist/web-utils/src/utils/auth.d.ts +2 -0
- package/dist/web-utils/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/package.json
CHANGED
|
@@ -56,7 +56,6 @@ import { StorageService } from "@iblai/data-layer";
|
|
|
56
56
|
* On React Native, this is a no-op
|
|
57
57
|
*/
|
|
58
58
|
export declare function syncAuthToCookies(storageService: StorageService): Promise<void>;
|
|
59
|
-
export declare function hasNonExpiredAuthToken(): boolean;
|
|
60
59
|
/**
|
|
61
60
|
* Clear current tenant cookie only (web only)
|
|
62
61
|
* Should be called before tenant switching
|
|
@@ -21,6 +21,8 @@ export declare function sendMessageToParentWebsite(payload: unknown): void;
|
|
|
21
21
|
* @param domain - Cookie domain
|
|
22
22
|
*/
|
|
23
23
|
export declare function deleteCookie(name: string, path: string, domain: string): void;
|
|
24
|
+
export declare function isJwtExpired(token: string): boolean;
|
|
25
|
+
export declare function hasNonExpiredAuthToken(): boolean;
|
|
24
26
|
/**
|
|
25
27
|
* Get all possible domain parts for cookie deletion
|
|
26
28
|
* @param domain - The domain to split
|