mftsccs-browser 2.1.231-beta → 2.1.232-beta
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/main.bundle.js +1 -1
- package/dist/serviceWorker.bundle.js +1 -1
- package/dist/types/DataStructures/BaseUrl.d.ts +1 -0
- package/dist/types/DataStructures/Security/TokenStorage.d.ts +1 -0
- package/dist/types/Services/Security/GetRequestHeader.d.ts +6 -3
- package/dist/types/Services/User/UserFromLocalStorage.d.ts +5 -0
- package/dist/types/app.d.ts +2 -2
- package/package.json +1 -1
|
@@ -48,6 +48,7 @@ export declare class BaseUrl {
|
|
|
48
48
|
static MakeTheNameInBackendUrl(): string;
|
|
49
49
|
static SearchAllTypeWithLinker(auth?: boolean): string;
|
|
50
50
|
static LoginUrl(): string;
|
|
51
|
+
static RefreshTokenUrl(): string;
|
|
51
52
|
static SignupUrl(): string;
|
|
52
53
|
static GetCompositionConnectionBetweenTwoConceptsUrl(): string;
|
|
53
54
|
static SearchCompositionsUrl(): string;
|
|
@@ -11,6 +11,7 @@ export declare class TokenStorage {
|
|
|
11
11
|
* Also populates profileCache so getUserDetails() works synchronously.
|
|
12
12
|
*/
|
|
13
13
|
static saveUserProfile(signinResponse: any): Promise<boolean>;
|
|
14
|
+
static updateTokens(accessToken?: string, refreshToken?: string): Promise<void>;
|
|
14
15
|
/**
|
|
15
16
|
* Call once at app startup (e.g. in init()) to decrypt the stored profile
|
|
16
17
|
* into memory so that getUserDetails() can read it synchronously.
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function
|
|
3
|
-
export declare function
|
|
1
|
+
type RequestHeader = Record<string, string>;
|
|
2
|
+
export declare function GetRequestHeader(contentType?: string, Accept?: string): Promise<RequestHeader>;
|
|
3
|
+
export declare function GetRequestHeaderWithAuthorization(contentType?: string, token?: string, Accept?: string): Promise<RequestHeader>;
|
|
4
|
+
export declare function GetOnlyTokenHeader(): Promise<Headers>;
|
|
5
|
+
export declare function getValidAccessToken(token?: string): Promise<string>;
|
|
6
|
+
export {};
|
|
@@ -3,3 +3,8 @@
|
|
|
3
3
|
* Priority: in-memory profileCache (encrypted) → legacy localStorage("profile") fallback.
|
|
4
4
|
*/
|
|
5
5
|
export declare function getUserDetails(): Record<string, any>;
|
|
6
|
+
/**
|
|
7
|
+
* Returns user details after hydrating storage and refreshing an expired token.
|
|
8
|
+
* Use this when callers need a valid token from the user details object.
|
|
9
|
+
*/
|
|
10
|
+
export declare function getUserDetailsWithRefresh(): Promise<Record<string, any>>;
|
package/dist/types/app.d.ts
CHANGED
|
@@ -128,7 +128,7 @@ export { CreateConnectionBetweenEntityLocal } from './Services/CreateConnection/
|
|
|
128
128
|
export { BuildWidgetFromId } from './Widgets/WidgetBuild';
|
|
129
129
|
export { clearAllCaches } from './Services/CacheClear';
|
|
130
130
|
export { removeAllChildren } from './Services/Common/RemoveAllChild';
|
|
131
|
-
export { getUserDetails } from './Services/User/UserFromLocalStorage';
|
|
131
|
+
export { getUserDetails, getUserDetailsWithRefresh } from './Services/User/UserFromLocalStorage';
|
|
132
132
|
export { TokenStorage } from './DataStructures/Security/TokenStorage';
|
|
133
133
|
export { CountInfo } from './DataStructures/Count/CountInfo';
|
|
134
134
|
export { LogEvent } from './Services/Logs/LogEvent';
|
|
@@ -212,7 +212,7 @@ export declare function setHasActivatedSW(value: boolean): void;
|
|
|
212
212
|
* @see {@link Signin} for alternative authentication
|
|
213
213
|
* @see {@link init} which can also set initial token
|
|
214
214
|
*/
|
|
215
|
-
declare function updateAccessToken(accessToken?: string, session?: any): void;
|
|
215
|
+
declare function updateAccessToken(accessToken?: string, session?: any, refreshToken?: string): void;
|
|
216
216
|
/**
|
|
217
217
|
* Initializes the mftsccs-browser package and sets up all required subsystems.
|
|
218
218
|
*
|