@lifeready/core 1.1.16 → 1.1.17
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/bundles/lifeready-core.umd.js +68 -40
- package/bundles/lifeready-core.umd.js.map +1 -1
- package/bundles/lifeready-core.umd.min.js +1 -1
- package/bundles/lifeready-core.umd.min.js.map +1 -1
- package/esm2015/lib/_common/storage.js +28 -0
- package/esm2015/lib/auth/life-ready-auth.service.js +4 -8
- package/esm2015/lib/tp-password-reset/tp-password-reset-user.service.js +5 -1
- package/esm2015/lifeready-core.js +8 -9
- package/fesm2015/lifeready-core.js +37 -9
- package/fesm2015/lifeready-core.js.map +1 -1
- package/lib/_common/storage.d.ts +13 -0
- package/lib/auth/life-ready-auth.service.d.ts +1 -3
- package/lifeready-core.d.ts +7 -8
- package/lifeready-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Remove all keys in localstorage with matching prefix.
|
|
3
|
+
* A prefix must be specified. If you want to remove everything, then just use localStorage.clear().
|
|
4
|
+
*
|
|
5
|
+
* @param prefix Keys with this prefix will be removed.
|
|
6
|
+
*/
|
|
7
|
+
export declare function clearLocalStorage(prefix: string): void;
|
|
8
|
+
/**
|
|
9
|
+
* Clear all items related to cognito in localstorage.
|
|
10
|
+
* The remember device function sometimes interferes with creating new users
|
|
11
|
+
* on TP based password reset.
|
|
12
|
+
*/
|
|
13
|
+
export declare function clearCognitoLocalStorage(): void;
|
|
@@ -11,7 +11,6 @@ import { LifeReadyConfig } from '../life-ready.config';
|
|
|
11
11
|
import { PasswordService } from '../password/password.service';
|
|
12
12
|
import { PersistService } from '../persist/persist.service';
|
|
13
13
|
import { ProfileService } from '../profile/profile.service';
|
|
14
|
-
import { Slip39Service } from '../slip39/slip39.service';
|
|
15
14
|
import { TpPasswordResetAssemblyController } from '../tp-password-reset/tp-password-reset.controller';
|
|
16
15
|
import { CognitoChallengeUser, CurrentUser, LoginResult, TpPasswordResetUser } from './auth.types';
|
|
17
16
|
export declare const initialiseAuth: (authService: LifeReadyAuthService) => () => Promise<void>;
|
|
@@ -32,13 +31,12 @@ export declare class LifeReadyAuthService {
|
|
|
32
31
|
private tpPasswordResetProcessorService;
|
|
33
32
|
private persistService;
|
|
34
33
|
private encryptionService;
|
|
35
|
-
private slip39Service;
|
|
36
34
|
private assemblyController;
|
|
37
35
|
private hubSubject;
|
|
38
36
|
private currentUser;
|
|
39
37
|
private currentResetUser;
|
|
40
38
|
private logoutListeners;
|
|
41
|
-
constructor(config: LifeReadyConfig, auth: AuthClass, keyFactory: KeyFactoryService, keyService: KeyService, profileService: ProfileService, keyGraphService: KeyGraphService, passwordService: PasswordService, idleService: IdleService, lrGraphQL: LrGraphQLService, tpPasswordResetProcessorService: TpPasswordResetProcessorService, persistService: PersistService, encryptionService: EncryptionService,
|
|
39
|
+
constructor(config: LifeReadyConfig, auth: AuthClass, keyFactory: KeyFactoryService, keyService: KeyService, profileService: ProfileService, keyGraphService: KeyGraphService, passwordService: PasswordService, idleService: IdleService, lrGraphQL: LrGraphQLService, tpPasswordResetProcessorService: TpPasswordResetProcessorService, persistService: PersistService, encryptionService: EncryptionService, assemblyController: TpPasswordResetAssemblyController);
|
|
42
40
|
initialise(): Promise<void>;
|
|
43
41
|
importPassword(plainPassword: string): Promise<CryptoKey>;
|
|
44
42
|
addLogoutListener(callback: LogoutListener): void;
|
package/lifeready-core.d.ts
CHANGED
|
@@ -3,17 +3,16 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export * from './public-api';
|
|
5
5
|
export { RunOutsideAngular as ɵh } from './lib/_common/run-outside-angular';
|
|
6
|
-
export { LrGraphQLService as ɵf, LrService as
|
|
6
|
+
export { LrGraphQLService as ɵf, LrService as ɵk } from './lib/api/lr-graphql';
|
|
7
7
|
export { TpPasswordResetProcessorService as ɵg } from './lib/api/query-processor/tp-password-reset-processor.service';
|
|
8
8
|
export { EncryptionService as ɵb } from './lib/encryption/encryption.service';
|
|
9
9
|
export { KeyFactoryService as ɵd } from './lib/key/key-factory.service';
|
|
10
10
|
export { KeyGraphService as ɵa } from './lib/key/key-graph.service';
|
|
11
11
|
export { KeyMetaService as ɵe } from './lib/key/key-meta.service';
|
|
12
12
|
export { KeyService as ɵc } from './lib/key/key.service';
|
|
13
|
-
export { ScenarioAssemblyController as
|
|
14
|
-
export { SharedContactCardService as
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
18
|
-
export {
|
|
19
|
-
export { TrustedPartyService as ɵn } from './lib/trusted-party/trusted-party.service';
|
|
13
|
+
export { ScenarioAssemblyController as ɵn } from './lib/scenario/scenario.controller';
|
|
14
|
+
export { SharedContactCardService as ɵl } from './lib/shared-contact-card/shared-contact-card.service';
|
|
15
|
+
export { TpAssemblyController as ɵj } from './lib/tp-assembly/tp-assembly';
|
|
16
|
+
export { TpPasswordResetAssemblyController as ɵi } from './lib/tp-password-reset/tp-password-reset.controller';
|
|
17
|
+
export { TpPasswordResetPrivateService as ɵo } from './lib/tp-password-reset/tp-password-reset.private.service';
|
|
18
|
+
export { TrustedPartyService as ɵm } from './lib/trusted-party/trusted-party.service';
|