@lifeready/core 1.1.18 → 1.1.19
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 +5246 -5238
- 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/auth/auth.types.js +1 -1
- package/esm2015/lib/auth/life-ready-auth.service.js +12 -6
- package/esm2015/lib/file-upload/file-upload.service.js +5 -3
- package/esm2015/lib/idle/idle.service.js +4 -7
- package/esm2015/lib/password/password.service.js +7 -9
- package/esm2015/lib/time/time.service.js +6 -5
- package/fesm2015/lifeready-core.js +2697 -2694
- package/fesm2015/lifeready-core.js.map +1 -1
- package/lib/auth/auth.types.d.ts +0 -1
- package/lib/auth/life-ready-auth.service.d.ts +2 -0
- package/lib/password/password.service.d.ts +1 -3
- package/lifeready-core.metadata.json +1 -1
- package/package.json +1 -1
package/lib/auth/auth.types.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export interface LoginOptions {
|
|
|
18
18
|
tpPasswordResetAutoComplete?: boolean;
|
|
19
19
|
}
|
|
20
20
|
export declare type LogoutListener = () => void | Promise<void>;
|
|
21
|
+
export declare function getAccessJwtToken(auth: AuthClass): Promise<string>;
|
|
21
22
|
export declare class LifeReadyAuthService {
|
|
22
23
|
private config;
|
|
23
24
|
private auth;
|
|
@@ -38,6 +39,7 @@ export declare class LifeReadyAuthService {
|
|
|
38
39
|
private logoutListeners;
|
|
39
40
|
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);
|
|
40
41
|
initialise(): Promise<void>;
|
|
42
|
+
getAccessJwtToken(): Promise<string>;
|
|
41
43
|
importPassword(plainPassword: string): Promise<CryptoKey>;
|
|
42
44
|
addLogoutListener(callback: LogoutListener): void;
|
|
43
45
|
removeLogoutListener(callback: LogoutListener): void;
|
|
@@ -4,7 +4,6 @@ import { Duration } from 'moment';
|
|
|
4
4
|
import { JWK } from 'node-jose';
|
|
5
5
|
import { PassKeyBundle } from '../auth/auth.types';
|
|
6
6
|
import { EncryptionService } from '../encryption/encryption.service';
|
|
7
|
-
import { IdleService } from '../idle/idle.service';
|
|
8
7
|
import { KeyFactoryService as KFS } from '../key/key-factory.service';
|
|
9
8
|
import { KeyGraphService } from '../key/key-graph.service';
|
|
10
9
|
import { LifeReadyConfig } from '../life-ready.config';
|
|
@@ -31,9 +30,8 @@ export declare class PasswordService {
|
|
|
31
30
|
private encryptionService;
|
|
32
31
|
private keyGraph;
|
|
33
32
|
private webCryptoService;
|
|
34
|
-
private idleService;
|
|
35
33
|
private readonly CLIENT_NONCE_LENGTH;
|
|
36
|
-
constructor(config: LifeReadyConfig, http: HttpClient, apollo: LrApolloService, auth: AuthClass, profileService: ProfileService, keyFactory: KFS, encryptionService: EncryptionService, keyGraph: KeyGraphService, webCryptoService: WebCryptoService
|
|
34
|
+
constructor(config: LifeReadyConfig, http: HttpClient, apollo: LrApolloService, auth: AuthClass, profileService: ProfileService, keyFactory: KFS, encryptionService: EncryptionService, keyGraph: KeyGraphService, webCryptoService: WebCryptoService);
|
|
37
35
|
checkPassword(plainPassword: string): Promise<PasswordCheck>;
|
|
38
36
|
getExposureCount(plainPassword: string): Promise<number>;
|
|
39
37
|
getPassIdpString(passIdp: JWK.Key): any;
|