@idea-ionic/auth 7.2.4 → 7.2.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idea-ionic/auth",
3
- "version": "7.2.4",
3
+ "version": "7.2.7",
4
4
  "description": "IDEA Ionic auth flow",
5
5
  "dependencies": {
6
6
  "amazon-cognito-identity-js": "^6.3.7",
@@ -8,6 +8,11 @@ import * as i0 from "@angular/core";
8
8
  */
9
9
  export declare class IDEAAuthService {
10
10
  private storage;
11
+ protected env: any;
12
+ /**
13
+ * The name of the Cognito's user attribute which contains the key of the last device to login in this project.
14
+ */
15
+ protected deviceKeyAttribute: string;
11
16
  private userPool;
12
17
  challengeUsername: string;
13
18
  private challengePassword;
@@ -12,16 +12,11 @@ export declare class IDEAConfirmPasswordPage implements OnInit {
12
12
  private loading;
13
13
  private t;
14
14
  auth: IDEAAuthService;
15
+ protected env: any;
15
16
  email: string;
16
17
  newPassword: string;
17
18
  code: string;
18
- passwordPolicy: {
19
- minLength: number;
20
- requireLowercase: boolean;
21
- requireDigits: boolean;
22
- requireSymbols: boolean;
23
- requireUppercase: boolean;
24
- };
19
+ passwordPolicy: any;
25
20
  errorMsg: string;
26
21
  constructor(navCtrl: NavController, route: ActivatedRoute, popoverCtrl: PopoverController, message: IDEAMessageService, loading: IDEALoadingService, t: IDEATranslationsService, auth: IDEAAuthService);
27
22
  ngOnInit(): void;
@@ -10,14 +10,9 @@ export declare class IDEANewPasswordPage implements OnInit {
10
10
  private loading;
11
11
  private t;
12
12
  auth: IDEAAuthService;
13
+ protected env: any;
13
14
  newPassword: string;
14
- passwordPolicy: {
15
- minLength: number;
16
- requireLowercase: boolean;
17
- requireDigits: boolean;
18
- requireSymbols: boolean;
19
- requireUppercase: boolean;
20
- };
15
+ passwordPolicy: any;
21
16
  errorMsg: string;
22
17
  constructor(navCtrl: NavController, popoverCtrl: PopoverController, message: IDEAMessageService, loading: IDEALoadingService, t: IDEATranslationsService, auth: IDEAAuthService);
23
18
  ngOnInit(): void;
@@ -1,12 +1,7 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class IDEAPasswordPolicyComponent {
3
- passwordPolicy: {
4
- minLength: number;
5
- requireLowercase: boolean;
6
- requireDigits: boolean;
7
- requireSymbols: boolean;
8
- requireUppercase: boolean;
9
- };
3
+ protected env: any;
4
+ passwordPolicy: any;
10
5
  constructor();
11
6
  static ɵfac: i0.ɵɵFactoryDeclaration<IDEAPasswordPolicyComponent, never>;
12
7
  static ɵcmp: i0.ɵɵComponentDeclaration<IDEAPasswordPolicyComponent, "idea-password-policy", never, {}, {}, never, never, false, never>;
@@ -8,6 +8,7 @@ export declare class IDEASignInPage {
8
8
  private loading;
9
9
  private t;
10
10
  private auth;
11
+ protected env: any;
11
12
  title: string;
12
13
  registrationPossible: boolean;
13
14
  hasIntroPage: boolean;
@@ -10,16 +10,11 @@ export declare class IDEASignUpPage implements OnInit {
10
10
  private loading;
11
11
  private t;
12
12
  auth: IDEAAuthService;
13
+ protected env: any;
13
14
  email: string;
14
15
  password: string;
15
16
  agreementsCheck: boolean;
16
- passwordPolicy: {
17
- minLength: number;
18
- requireLowercase: boolean;
19
- requireDigits: boolean;
20
- requireSymbols: boolean;
21
- requireUppercase: boolean;
22
- };
17
+ passwordPolicy: any;
23
18
  errorMsg: string;
24
19
  constructor(navCtrl: NavController, popoverCtrl: PopoverController, message: IDEAMessageService, loading: IDEALoadingService, t: IDEATranslationsService, auth: IDEAAuthService);
25
20
  ngOnInit(): void;
package/environment.d.ts DELETED
@@ -1,32 +0,0 @@
1
- /**
2
- * The environment variables used by this module.
3
- */
4
- export declare const environment: {
5
- idea: {
6
- project: string;
7
- website: string;
8
- ionicExtraModules: string[];
9
- app: {
10
- title: string;
11
- hasIntroPage: boolean;
12
- };
13
- auth: {
14
- registrationIsPossible: boolean;
15
- singleSimultaneousSession: boolean;
16
- forceLoginWithMFA: boolean;
17
- passwordPolicy: {
18
- minLength: number;
19
- requireLowercase: boolean;
20
- requireDigits: boolean;
21
- requireSymbols: boolean;
22
- requireUppercase: boolean;
23
- };
24
- };
25
- };
26
- aws: {
27
- cognito: {
28
- userPoolId: string;
29
- userPoolClientId: string;
30
- };
31
- };
32
- };
@@ -1,34 +0,0 @@
1
- /**
2
- * The environment variables used by this module.
3
- */
4
- export const environment = {
5
- idea: {
6
- project: '',
7
- website: '',
8
- ionicExtraModules: ['auth'],
9
- app: {
10
- title: '',
11
- hasIntroPage: false
12
- },
13
- auth: {
14
- registrationIsPossible: false,
15
- singleSimultaneousSession: false,
16
- forceLoginWithMFA: false,
17
- // note: the passwordPolicy should be set matching the configuration of the Cognito User Pool
18
- passwordPolicy: {
19
- minLength: 8,
20
- requireLowercase: false,
21
- requireDigits: false,
22
- requireSymbols: false,
23
- requireUppercase: false
24
- }
25
- }
26
- },
27
- aws: {
28
- cognito: {
29
- userPoolId: '',
30
- userPoolClientId: ''
31
- }
32
- }
33
- };
34
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW52aXJvbm1lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9tb2R1bGVzL2F1dGgvZW52aXJvbm1lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFDSCxNQUFNLENBQUMsTUFBTSxXQUFXLEdBQUc7SUFDekIsSUFBSSxFQUFFO1FBQ0osT0FBTyxFQUFFLEVBQUU7UUFDWCxPQUFPLEVBQUUsRUFBRTtRQUNYLGlCQUFpQixFQUFFLENBQUMsTUFBTSxDQUFDO1FBQzNCLEdBQUcsRUFBRTtZQUNILEtBQUssRUFBRSxFQUFFO1lBQ1QsWUFBWSxFQUFFLEtBQUs7U0FDcEI7UUFDRCxJQUFJLEVBQUU7WUFDSixzQkFBc0IsRUFBRSxLQUFLO1lBQzdCLHlCQUF5QixFQ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