@genesislcap/foundation-comms 14.154.1-alpha-ae03788.0 → 14.154.1-alpha-2fdebc5.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/dts/credentialManager/credentialManager.d.ts.map +1 -1
- package/dist/dts/session/session.d.ts +3 -3
- package/dist/dts/session/session.d.ts.map +1 -1
- package/dist/dts/testing/mocks/session/session.d.ts +1 -1
- package/dist/dts/testing/mocks/session/session.d.ts.map +1 -1
- package/dist/esm/auth/auth.js +2 -2
- package/dist/esm/connect/http.connect.js +1 -1
- package/dist/esm/connect/socket.js +1 -1
- package/dist/esm/credentialManager/credentialManager.js +11 -6
- package/dist/esm/session/session.js +8 -7
- package/dist/esm/testing/mocks/session/session.js +1 -1
- package/dist/foundation-comms.api.json +7 -7
- package/dist/foundation-comms.d.ts +4 -4
- package/docs/api/{foundation-comms.defaultsession.deleteuserfromlocalstorage.md → foundation-comms.defaultsession.deleteuserfromsessionstorage.md} +3 -3
- package/docs/api/foundation-comms.defaultsession.md +1 -1
- package/docs/api/{foundation-comms.session.deleteuserfromlocalstorage.md → foundation-comms.session.deleteuserfromsessionstorage.md} +4 -4
- package/docs/api/foundation-comms.session.md +1 -1
- package/docs/api-report.md +3 -3
- package/package.json +11 -11
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"credentialManager.d.ts","sourceRoot":"","sources":["../../../src/credentialManager/credentialManager.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtF,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,KAAK,EACV,qBAAqB,EACrB,cAAc,EACd,oBAAoB,EACpB,uBAAuB,EACvB,mBAAmB,EACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAcpE;;;GAGG;AACH,eAAO,MAAM,mBAAmB,MAAM,CAAC;AAqDvC;;;GAGG;AACH,eAAO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cAAc,GACtB,CAAC,cAAc,GAAG,SAAS,EAAE,OAAO,CAAC;IAqElC,2BAA2B,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC;IASlF,2BAA2B,CAC/B,OAAO,2BAAkC,GACxC,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC;IAQjC,wBAAwB,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO;IAYvD,wBAAwB,IAAI,cAAc,GAAG,SAAS;IAMhD,gBAAgB,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;IAQxD,cAAc,CAAC,OAAO,CAAC,EAAE,oBAAoB,GAAG,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC;IAOzF,WAAW;IAIX,WAAW;IAOX,eAAe;IAQf,WAAW;IAIX,YAAY;IAOZ,cAAc;IAId,cAAc;IAKd,kBAAkB;IAKlB,cAAc;IAId,SAAS;IAQT,mBAAmB;CAGpB;AAED;;;GAGG;AACH,eAAO,MAAM,iBAAiB,yEAE7B,CAAC"}
|
@@ -37,10 +37,10 @@ export interface Session {
|
|
37
37
|
*/
|
38
38
|
setAuthResult(info: Message): void;
|
39
39
|
/**
|
40
|
-
* Deletes the user from the
|
40
|
+
* Deletes the user from the session storage.
|
41
41
|
* @public
|
42
42
|
*/
|
43
|
-
|
43
|
+
deleteUserFromSessionStorage(): void;
|
44
44
|
/**
|
45
45
|
* Captures the return URL for the session.
|
46
46
|
* @public
|
@@ -121,7 +121,7 @@ export declare class DefaultSession implements Session {
|
|
121
121
|
*/
|
122
122
|
private storageKeyPrefix;
|
123
123
|
returnUrl: string;
|
124
|
-
|
124
|
+
deleteUserFromSessionStorage(): void;
|
125
125
|
setStorageKeyPrefix(prefix: string): void;
|
126
126
|
setAuthResult(result: Message): void;
|
127
127
|
captureReturnUrl(): void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../src/session/session.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C;;;GAGG;AAEH;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,SAAS,CAAC;AAE9C;;;GAGG;AACH,KAAK,YAAY,GACb,WAAW,GACX,UAAU,GACV,cAAc,GACd,WAAW,GACX,WAAW,GACX,SAAS,GACT,aAAa,CAAC;AAElB;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACtB;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1C;;;;OAIG;IACH,aAAa,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;IAEnC;;;OAGG;IACH,
|
1
|
+
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../src/session/session.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C;;;GAGG;AAEH;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,SAAS,CAAC;AAE9C;;;GAGG;AACH,KAAK,YAAY,GACb,WAAW,GACX,UAAU,GACV,cAAc,GACd,WAAW,GACX,WAAW,GACX,SAAS,GACT,aAAa,CAAC;AAElB;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACtB;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1C;;;;OAIG;IACH,aAAa,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;IAEnC;;;OAGG;IACH,4BAA4B,IAAI,IAAI,CAAC;IAErC;;;OAGG;IACH,gBAAgB,IAAI,IAAI,CAAC;IAEzB;;;;;;OAMG;IACH,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,EAAE,KAAK,EAAE,M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MAAM,GAAG,YAAY,EAAE,OAAO,EAAE,WAAW,GAAG,MAAM;IAKjE,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,EAAE,OAAO,EAAE,WAAW,GAAG,IAAI;IAQlE,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAIpE,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAItE,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,GAAG,MAAM;IAIvD,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,GAAG,MAAM;IAIzD,sBAAsB,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,GAAG,IAAI;IAIxD,wBAAwB,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,GAAG,IAAI;CAGlE;AAED;;;GAGG;AACH,eAAO,MAAM,OAAO,+DAAkE,CAAC"}
|
@@ -5,7 +5,7 @@ import type { Message, Session } from '../../../';
|
|
5
5
|
export declare class SessionMock implements Session {
|
6
6
|
returnUrl: string;
|
7
7
|
nextStorageItem: string;
|
8
|
-
|
8
|
+
deleteUserFromSessionStorage(): void;
|
9
9
|
setStorageKeyPrefix(prefix: string): void;
|
10
10
|
setAuthResult(loginResult: Message): void;
|
11
11
|
captureReturnUrl(): void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../../../src/testing/mocks/session/session.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAElD;;GAEG;AACH,qBAAa,WAAY,YAAW,OAAO;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IAExB,
|
1
|
+
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../../../src/testing/mocks/session/session.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAElD;;GAEG;AACH,qBAAa,WAAY,YAAW,OAAO;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IAExB,4BAA4B,IAAI,IAAI;IAEpC,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAEzC,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,IAAI;IAEzC,gBAAgB,IAAI,IAAI;IAExB,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAEzC,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;IAI5B,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAE7B,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAErD,qBAAqB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAEvD,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;IAIxC,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;IAI1C,sBAAsB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAEzC,wBAAwB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;CACnD"}
|
package/dist/esm/auth/auth.js
CHANGED
@@ -85,7 +85,7 @@ let DefaultAuth = class DefaultAuth {
|
|
85
85
|
try {
|
86
86
|
const logoutMessage = this.messageBuilder.createLogoutMessage(this.loggedUserResult);
|
87
87
|
// TODO: Improve auth scenario where server timeout has the same message return as logout
|
88
|
-
this.session.
|
88
|
+
this.session.deleteUserFromSessionStorage();
|
89
89
|
this.connect.setValidSession(false);
|
90
90
|
const { CODE, DETAILS, ERROR, MESSAGE_TYPE, OIDC_LOGOUT_URL } = yield this.connect.send(logoutMessage);
|
91
91
|
const error = (_a = DETAILS === null || DETAILS === void 0 ? void 0 : DETAILS.ERROR) !== null && _a !== void 0 ? _a : ERROR;
|
@@ -138,7 +138,7 @@ let DefaultAuth = class DefaultAuth {
|
|
138
138
|
return true;
|
139
139
|
}
|
140
140
|
}
|
141
|
-
this.session.
|
141
|
+
this.session.deleteUserFromSessionStorage();
|
142
142
|
this.connect.setValidSession(false);
|
143
143
|
return false;
|
144
144
|
});
|
@@ -102,7 +102,7 @@ let DefaultHttpConnect = class DefaultHttpConnect {
|
|
102
102
|
}
|
103
103
|
return this.checkHost().then((connected) => {
|
104
104
|
this.isConnected = connected;
|
105
|
-
this.session.
|
105
|
+
this.session.setSessionStorageItem('hostUrl', this.host);
|
106
106
|
return connected;
|
107
107
|
});
|
108
108
|
});
|
@@ -119,7 +119,7 @@ let SocketService = class SocketService {
|
|
119
119
|
url: this.url,
|
120
120
|
openObserver: {
|
121
121
|
next: () => {
|
122
|
-
this.session.
|
122
|
+
this.session.setSessionStorageItem('hostUrl', this.url);
|
123
123
|
this.isConnected = true;
|
124
124
|
this.prepareHeartbeat();
|
125
125
|
logger.info(`WebSocket connection is now open`);
|
@@ -242,16 +242,19 @@ let DefaultCredentialManager = class DefaultCredentialManager {
|
|
242
242
|
});
|
243
243
|
}
|
244
244
|
getSSOToken() {
|
245
|
-
return this.session.
|
245
|
+
return this.session.getSessionStorageItem('ssoToken');
|
246
246
|
}
|
247
247
|
getUsername() {
|
248
|
-
|
248
|
+
// MFA flow requires to get username from local storage, so it works when opened in a new tab from a link
|
249
|
+
return (this.session.getSessionStorageItem('username') || this.session.getLocalStorageItem('username'));
|
249
250
|
}
|
250
251
|
getRefreshToken() {
|
251
|
-
|
252
|
+
// MFA flow requires to get refresh from local storage, so it works when opened in a new tab from a link
|
253
|
+
return (this.session.getSessionStorageItem('refreshToken') ||
|
254
|
+
this.session.getLocalStorageItem('refreshToken'));
|
252
255
|
}
|
253
256
|
getMFAToken() {
|
254
|
-
return this.session.
|
257
|
+
return this.session.getSessionStorageItem('mfaToken');
|
255
258
|
}
|
256
259
|
removeCookie() {
|
257
260
|
jsCookie.remove(this.config.cookie.name, {
|
@@ -260,16 +263,18 @@ let DefaultCredentialManager = class DefaultCredentialManager {
|
|
260
263
|
});
|
261
264
|
}
|
262
265
|
removeSSOToken() {
|
263
|
-
this.session.
|
266
|
+
this.session.removeSessionStorageItem('ssoToken');
|
264
267
|
}
|
265
268
|
removeUsername() {
|
269
|
+
this.session.removeSessionStorageItem('username');
|
266
270
|
this.session.removeLocalStorageItem('username');
|
267
271
|
}
|
268
272
|
removeRefreshToken() {
|
273
|
+
this.session.removeSessionStorageItem('refreshToken');
|
269
274
|
this.session.removeLocalStorageItem('refreshToken');
|
270
275
|
}
|
271
276
|
removeMFAToken() {
|
272
|
-
this.session.
|
277
|
+
this.session.removeSessionStorageItem('mfaToken');
|
273
278
|
}
|
274
279
|
removeAll() {
|
275
280
|
this.removeCookie();
|
@@ -12,18 +12,19 @@ export class DefaultSession {
|
|
12
12
|
this.storageKeyPrefix = '';
|
13
13
|
this.returnUrl = this.getSessionStorageItem('returnUrl') || '';
|
14
14
|
}
|
15
|
-
|
15
|
+
deleteUserFromSessionStorage() {
|
16
16
|
const storageKeys = ['authToken', 'refreshToken', 'sessionId', 'ssoToken'];
|
17
|
-
storageKeys.forEach((key) => this.
|
17
|
+
storageKeys.forEach((key) => this.removeSessionStorageItem(key));
|
18
|
+
this.removeLocalStorageItem('refreshToken');
|
18
19
|
}
|
19
20
|
setStorageKeyPrefix(prefix) {
|
20
21
|
this.storageKeyPrefix = `${prefix.replace(/\s/g, '')}/`;
|
21
22
|
}
|
22
23
|
setAuthResult(result) {
|
23
|
-
this.
|
24
|
-
this.
|
25
|
-
this.
|
26
|
-
this.
|
24
|
+
this.setSessionStorageItem('authToken', result.SESSION_AUTH_TOKEN);
|
25
|
+
this.setSessionStorageItem('refreshToken', result.REFRESH_AUTH_TOKEN);
|
26
|
+
this.setSessionStorageItem('username', result.USER_NAME);
|
27
|
+
this.setSessionStorageItem('sessionId', result.SESSION_ID);
|
27
28
|
}
|
28
29
|
captureReturnUrl() {
|
29
30
|
const { pathname, search, hash } = location;
|
@@ -36,7 +37,7 @@ export class DefaultSession {
|
|
36
37
|
}
|
37
38
|
const path = `${pathname !== '/' ? pathname : ''}`;
|
38
39
|
this.returnUrl = `${path}${search}${hash}`;
|
39
|
-
this.
|
40
|
+
this.setSessionStorageItem('returnUrl', this.returnUrl);
|
40
41
|
}
|
41
42
|
setItem(key, value, storage) {
|
42
43
|
if (storage === 'local') {
|
@@ -11605,12 +11605,12 @@
|
|
11605
11605
|
},
|
11606
11606
|
{
|
11607
11607
|
"kind": "Method",
|
11608
|
-
"canonicalReference": "@genesislcap/foundation-comms!DefaultSession#
|
11608
|
+
"canonicalReference": "@genesislcap/foundation-comms!DefaultSession#deleteUserFromSessionStorage:member(1)",
|
11609
11609
|
"docComment": "",
|
11610
11610
|
"excerptTokens": [
|
11611
11611
|
{
|
11612
11612
|
"kind": "Content",
|
11613
|
-
"text": "
|
11613
|
+
"text": "deleteUserFromSessionStorage(): "
|
11614
11614
|
},
|
11615
11615
|
{
|
11616
11616
|
"kind": "Content",
|
@@ -11632,7 +11632,7 @@
|
|
11632
11632
|
"parameters": [],
|
11633
11633
|
"isOptional": false,
|
11634
11634
|
"isAbstract": false,
|
11635
|
-
"name": "
|
11635
|
+
"name": "deleteUserFromSessionStorage"
|
11636
11636
|
},
|
11637
11637
|
{
|
11638
11638
|
"kind": "Method",
|
@@ -17643,12 +17643,12 @@
|
|
17643
17643
|
},
|
17644
17644
|
{
|
17645
17645
|
"kind": "MethodSignature",
|
17646
|
-
"canonicalReference": "@genesislcap/foundation-comms!Session#
|
17647
|
-
"docComment": "/**\n * Deletes the user from the
|
17646
|
+
"canonicalReference": "@genesislcap/foundation-comms!Session#deleteUserFromSessionStorage:member(1)",
|
17647
|
+
"docComment": "/**\n * Deletes the user from the session storage.\n *\n * @public\n */\n",
|
17648
17648
|
"excerptTokens": [
|
17649
17649
|
{
|
17650
17650
|
"kind": "Content",
|
17651
|
-
"text": "
|
17651
|
+
"text": "deleteUserFromSessionStorage(): "
|
17652
17652
|
},
|
17653
17653
|
{
|
17654
17654
|
"kind": "Content",
|
@@ -17667,7 +17667,7 @@
|
|
17667
17667
|
"releaseTag": "Public",
|
17668
17668
|
"overloadIndex": 1,
|
17669
17669
|
"parameters": [],
|
17670
|
-
"name": "
|
17670
|
+
"name": "deleteUserFromSessionStorage"
|
17671
17671
|
},
|
17672
17672
|
{
|
17673
17673
|
"kind": "MethodSignature",
|
@@ -1347,7 +1347,7 @@ export declare class DefaultSession implements Session {
|
|
1347
1347
|
*/
|
1348
1348
|
private storageKeyPrefix;
|
1349
1349
|
returnUrl: string;
|
1350
|
-
|
1350
|
+
deleteUserFromSessionStorage(): void;
|
1351
1351
|
setStorageKeyPrefix(prefix: string): void;
|
1352
1352
|
setAuthResult(result: Message): void;
|
1353
1353
|
captureReturnUrl(): void;
|
@@ -2730,10 +2730,10 @@ export declare interface Session {
|
|
2730
2730
|
*/
|
2731
2731
|
setAuthResult(info: Message): void;
|
2732
2732
|
/**
|
2733
|
-
* Deletes the user from the
|
2733
|
+
* Deletes the user from the session storage.
|
2734
2734
|
* @public
|
2735
2735
|
*/
|
2736
|
-
|
2736
|
+
deleteUserFromSessionStorage(): void;
|
2737
2737
|
/**
|
2738
2738
|
* Captures the return URL for the session.
|
2739
2739
|
* @public
|
@@ -2816,7 +2816,7 @@ export declare const Session: InterfaceSymbol<Session>;
|
|
2816
2816
|
export declare class SessionMock implements Session {
|
2817
2817
|
returnUrl: string;
|
2818
2818
|
nextStorageItem: string;
|
2819
|
-
|
2819
|
+
deleteUserFromSessionStorage(): void;
|
2820
2820
|
setStorageKeyPrefix(prefix: string): void;
|
2821
2821
|
setAuthResult(loginResult: Message): void;
|
2822
2822
|
captureReturnUrl(): void;
|
@@ -1,13 +1,13 @@
|
|
1
1
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
2
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [DefaultSession](./foundation-comms.defaultsession.md) > [
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [DefaultSession](./foundation-comms.defaultsession.md) > [deleteUserFromSessionStorage](./foundation-comms.defaultsession.deleteuserfromsessionstorage.md)
|
4
4
|
|
5
|
-
## DefaultSession.
|
5
|
+
## DefaultSession.deleteUserFromSessionStorage() method
|
6
6
|
|
7
7
|
**Signature:**
|
8
8
|
|
9
9
|
```typescript
|
10
|
-
|
10
|
+
deleteUserFromSessionStorage(): void;
|
11
11
|
```
|
12
12
|
**Returns:**
|
13
13
|
|
@@ -24,7 +24,7 @@ export declare class DefaultSession implements Session
|
|
24
24
|
| Method | Modifiers | Description |
|
25
25
|
| --- | --- | --- |
|
26
26
|
| [captureReturnUrl()](./foundation-comms.defaultsession.capturereturnurl.md) | | |
|
27
|
-
| [
|
27
|
+
| [deleteUserFromSessionStorage()](./foundation-comms.defaultsession.deleteuserfromsessionstorage.md) | | |
|
28
28
|
| [getItem(key, storage)](./foundation-comms.defaultsession.getitem.md) | | |
|
29
29
|
| [getLocalStorageItem(key)](./foundation-comms.defaultsession.getlocalstorageitem.md) | | |
|
30
30
|
| [getSessionStorageItem(key)](./foundation-comms.defaultsession.getsessionstorageitem.md) | | |
|
@@ -1,15 +1,15 @@
|
|
1
1
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
2
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [Session](./foundation-comms.session.md) > [
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [Session](./foundation-comms.session.md) > [deleteUserFromSessionStorage](./foundation-comms.session.deleteuserfromsessionstorage.md)
|
4
4
|
|
5
|
-
## Session.
|
5
|
+
## Session.deleteUserFromSessionStorage() method
|
6
6
|
|
7
|
-
Deletes the user from the
|
7
|
+
Deletes the user from the session storage.
|
8
8
|
|
9
9
|
**Signature:**
|
10
10
|
|
11
11
|
```typescript
|
12
|
-
|
12
|
+
deleteUserFromSessionStorage(): void;
|
13
13
|
```
|
14
14
|
**Returns:**
|
15
15
|
|
@@ -23,7 +23,7 @@ export interface Session
|
|
23
23
|
| Method | Description |
|
24
24
|
| --- | --- |
|
25
25
|
| [captureReturnUrl()](./foundation-comms.session.capturereturnurl.md) | Captures the return URL for the session. |
|
26
|
-
| [
|
26
|
+
| [deleteUserFromSessionStorage()](./foundation-comms.session.deleteuserfromsessionstorage.md) | Deletes the user from the session storage. |
|
27
27
|
| [getItem(key, storage)](./foundation-comms.session.getitem.md) | Returns the value of the specified item in the specified storage. |
|
28
28
|
| [getLocalStorageItem(key)](./foundation-comms.session.getlocalstorageitem.md) | Returns the value of the item with the specified key from the local storage. |
|
29
29
|
| [getSessionStorageItem(key)](./foundation-comms.session.getsessionstorageitem.md) | Returns the value of the item with the specified key from the session storage. |
|
package/docs/api-report.md
CHANGED
@@ -786,7 +786,7 @@ export class DefaultSession implements Session {
|
|
786
786
|
// (undocumented)
|
787
787
|
captureReturnUrl(): void;
|
788
788
|
// (undocumented)
|
789
|
-
|
789
|
+
deleteUserFromSessionStorage(): void;
|
790
790
|
// (undocumented)
|
791
791
|
getItem(key: string | UserInfoKeys, storage: StorageType): string;
|
792
792
|
// (undocumented)
|
@@ -1458,7 +1458,7 @@ export type ServerRow = {
|
|
1458
1458
|
// @public
|
1459
1459
|
export interface Session {
|
1460
1460
|
captureReturnUrl(): void;
|
1461
|
-
|
1461
|
+
deleteUserFromSessionStorage(): void;
|
1462
1462
|
getItem(key: string | UserInfoKeys, storage: StorageType): string;
|
1463
1463
|
getLocalStorageItem(key: string | UserInfoKeys): string;
|
1464
1464
|
getSessionStorageItem(key: string | UserInfoKeys): string;
|
@@ -1483,7 +1483,7 @@ export class SessionMock implements Session {
|
|
1483
1483
|
// (undocumented)
|
1484
1484
|
captureReturnUrl(): void;
|
1485
1485
|
// (undocumented)
|
1486
|
-
|
1486
|
+
deleteUserFromSessionStorage(): void;
|
1487
1487
|
// (undocumented)
|
1488
1488
|
getItem(key: string): string;
|
1489
1489
|
// (undocumented)
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@genesislcap/foundation-comms",
|
3
3
|
"description": "Genesis Foundation UI Comms",
|
4
|
-
"version": "14.154.1-alpha-
|
4
|
+
"version": "14.154.1-alpha-2fdebc5.0",
|
5
5
|
"sideEffects": false,
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
7
7
|
"main": "dist/esm/index.js",
|
@@ -59,13 +59,13 @@
|
|
59
59
|
"test:debug": "genx test --debug"
|
60
60
|
},
|
61
61
|
"devDependencies": {
|
62
|
-
"@genesislcap/foundation-testing": "14.154.1-alpha-
|
63
|
-
"@genesislcap/genx": "14.154.1-alpha-
|
64
|
-
"@genesislcap/rollup-builder": "14.154.1-alpha-
|
65
|
-
"@genesislcap/ts-builder": "14.154.1-alpha-
|
66
|
-
"@genesislcap/uvu-playwright-builder": "14.154.1-alpha-
|
67
|
-
"@genesislcap/vite-builder": "14.154.1-alpha-
|
68
|
-
"@genesislcap/webpack-builder": "14.154.1-alpha-
|
62
|
+
"@genesislcap/foundation-testing": "14.154.1-alpha-2fdebc5.0",
|
63
|
+
"@genesislcap/genx": "14.154.1-alpha-2fdebc5.0",
|
64
|
+
"@genesislcap/rollup-builder": "14.154.1-alpha-2fdebc5.0",
|
65
|
+
"@genesislcap/ts-builder": "14.154.1-alpha-2fdebc5.0",
|
66
|
+
"@genesislcap/uvu-playwright-builder": "14.154.1-alpha-2fdebc5.0",
|
67
|
+
"@genesislcap/vite-builder": "14.154.1-alpha-2fdebc5.0",
|
68
|
+
"@genesislcap/webpack-builder": "14.154.1-alpha-2fdebc5.0",
|
69
69
|
"@types/js-cookie": "^3.0.2",
|
70
70
|
"@types/json-schema": "^7.0.11",
|
71
71
|
"@types/webappsec-credential-management": "^0.6.2",
|
@@ -73,8 +73,8 @@
|
|
73
73
|
},
|
74
74
|
"dependencies": {
|
75
75
|
"@finos/fdc3": "^1.2.0",
|
76
|
-
"@genesislcap/foundation-logger": "14.154.1-alpha-
|
77
|
-
"@genesislcap/foundation-utils": "14.154.1-alpha-
|
76
|
+
"@genesislcap/foundation-logger": "14.154.1-alpha-2fdebc5.0",
|
77
|
+
"@genesislcap/foundation-utils": "14.154.1-alpha-2fdebc5.0",
|
78
78
|
"@microsoft/fast-element": "^1.12.0",
|
79
79
|
"@microsoft/fast-foundation": "^2.49.4",
|
80
80
|
"analytics": "^0.8.0",
|
@@ -91,5 +91,5 @@
|
|
91
91
|
"publishConfig": {
|
92
92
|
"access": "public"
|
93
93
|
},
|
94
|
-
"gitHead": "
|
94
|
+
"gitHead": "8365a6f02cf5a69c3b77b741c793b7dd6ddf872e"
|
95
95
|
}
|