@idea-ionic/auth 8.0.1 → 8.0.3

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": "8.0.1",
3
+ "version": "8.0.3",
4
4
  "description": "IDEA Ionic auth flow",
5
5
  "license": "MPL-2.0",
6
6
  "author": "ITER IDEA <info@iter-idea.com> (https://iter-idea.com)",
@@ -18,12 +18,12 @@
18
18
  "url": "https://github.com/iter-idea/IDEA-Ionic8-extra/issues"
19
19
  },
20
20
  "peerDependencies": {
21
- "@angular/common": "^18.1.1",
22
- "@angular/core": "^18.1.1",
23
- "@angular/forms": "^18.1.1",
24
- "@angular/platform-browser": "^18.1.1",
25
- "@angular/platform-browser-dynamic": "^18.1.1",
26
- "@angular/router": "^18.1.1",
21
+ "@angular/common": "^18.1.0",
22
+ "@angular/core": "^18.1.0",
23
+ "@angular/forms": "^18.1.0",
24
+ "@angular/platform-browser": "^18.1.0",
25
+ "@angular/platform-browser-dynamic": "^18.1.0",
26
+ "@angular/router": "^18.1.0",
27
27
  "@capacitor/browser": "^6.0.1",
28
28
  "@capacitor/core": "6.1.1",
29
29
  "@idea-ionic/common": "^8.x.x",
@@ -7,9 +7,9 @@ import * as i0 from "@angular/core";
7
7
  * Note: in IDEA's Cognito users pools, the email is an alias of the username.
8
8
  */
9
9
  export declare class IDEAAuthService {
10
- private storage;
11
- protected env: any;
12
- protected t: IDEATranslationsService;
10
+ protected _env: any;
11
+ protected _translate: IDEATranslationsService;
12
+ protected _storage: IDEAStorageService;
13
13
  /**
14
14
  * The name of the Cognito's user attribute which contains the key of the last device to login in this project.
15
15
  */
@@ -20,7 +20,7 @@ export declare class IDEAAuthService {
20
20
  private newAccountJustRegistered;
21
21
  private mfaProjectName;
22
22
  private passwordPolicy;
23
- constructor(storage: IDEAStorageService);
23
+ constructor();
24
24
  /**
25
25
  * Prepare the necessary structure to get authorized in Cognito.
26
26
  */
@@ -50,7 +50,7 @@ export declare class IDEAAuthService {
50
50
  */
51
51
  register(username: string, password: string, attributes?: any): Promise<CognitoUser>;
52
52
  /**
53
- * In case new account has just been registered, return the username.
53
+ * In case a new account has just been registered, return the username.
54
54
  */
55
55
  getNewAccountJustRegistered(): string;
56
56
  /**
@@ -1,24 +1,21 @@
1
1
  import { OnInit } from '@angular/core';
2
- import { NavController, PopoverController } from '@ionic/angular';
3
- import { ActivatedRoute } from '@angular/router';
4
- import { IDEAMessageService, IDEALoadingService, IDEATranslationsService } from '@idea-ionic/common';
5
2
  import { IDEAAuthService } from './auth.service';
6
3
  import * as i0 from "@angular/core";
7
4
  export declare class IDEAConfirmPasswordPage implements OnInit {
8
- private navCtrl;
9
- private route;
10
- private popoverCtrl;
11
- private message;
12
- private loading;
13
- private t;
14
- auth: IDEAAuthService;
15
- protected env: any;
5
+ protected _env: any;
6
+ private _nav;
7
+ private _route;
8
+ private _popover;
9
+ private _message;
10
+ private _loading;
11
+ private _translate;
12
+ _auth: IDEAAuthService;
16
13
  email: string;
17
14
  newPassword: string;
18
15
  code: string;
19
16
  passwordPolicy: any;
20
17
  errorMsg: string;
21
- constructor(navCtrl: NavController, route: ActivatedRoute, popoverCtrl: PopoverController, message: IDEAMessageService, loading: IDEALoadingService, t: IDEATranslationsService, auth: IDEAAuthService);
18
+ constructor();
22
19
  ngOnInit(): void;
23
20
  confirmPassword(): Promise<void>;
24
21
  openPasswordPolicy(event: Event): Promise<void>;
@@ -1,14 +1,10 @@
1
- import { NavController } from '@ionic/angular';
2
- import { IDEAMessageService, IDEALoadingService } from '@idea-ionic/common';
3
- import { IDEAAuthService } from './auth.service';
4
1
  import * as i0 from "@angular/core";
5
2
  export declare class IDEAForgotPasswordPage {
6
- private navCtrl;
7
- private message;
8
- private loading;
9
- private auth;
10
3
  email: string;
11
- constructor(navCtrl: NavController, message: IDEAMessageService, loading: IDEALoadingService, auth: IDEAAuthService);
4
+ private _nav;
5
+ private _message;
6
+ private _loading;
7
+ private _auth;
12
8
  forgotPassword(): Promise<void>;
13
9
  goToConfirmPassword(): void;
14
10
  goToAuth(): void;
@@ -1,17 +1,13 @@
1
1
  import { OnInit } from '@angular/core';
2
- import { NavController } from '@ionic/angular';
3
- import { IDEAMessageService, IDEALoadingService, IDEATranslationsService } from '@idea-ionic/common';
4
- import { IDEAAuthService } from './auth.service';
5
2
  import * as i0 from "@angular/core";
6
3
  export declare class IDEAMFAChallengePage implements OnInit {
7
- private navCtrl;
8
- private message;
9
- private loading;
10
- private auth;
11
- private t;
12
4
  otpCode: string;
13
5
  errorMsg: string;
14
- constructor(navCtrl: NavController, message: IDEAMessageService, loading: IDEALoadingService, auth: IDEAAuthService, t: IDEATranslationsService);
6
+ private _nav;
7
+ private _message;
8
+ private _loading;
9
+ private _auth;
10
+ private _translate;
15
11
  ngOnInit(): void;
16
12
  completeMFAChallenge(): Promise<void>;
17
13
  goToAuth(): void;
@@ -1,20 +1,18 @@
1
1
  import { OnInit } from '@angular/core';
2
- import { NavController, PopoverController } from '@ionic/angular';
3
- import { IDEAMessageService, IDEALoadingService, IDEATranslationsService } from '@idea-ionic/common';
4
2
  import { IDEAAuthService } from './auth.service';
5
3
  import * as i0 from "@angular/core";
6
4
  export declare class IDEANewPasswordPage implements OnInit {
7
- private navCtrl;
8
- private popoverCtrl;
9
- private message;
10
- private loading;
11
- private t;
12
- auth: IDEAAuthService;
13
- protected env: any;
5
+ protected _env: any;
6
+ private _nav;
7
+ private _popover;
8
+ private _message;
9
+ private _loading;
10
+ private _translate;
11
+ _auth: IDEAAuthService;
14
12
  newPassword: string;
15
13
  passwordPolicy: any;
16
14
  errorMsg: string;
17
- constructor(navCtrl: NavController, popoverCtrl: PopoverController, message: IDEAMessageService, loading: IDEALoadingService, t: IDEATranslationsService, auth: IDEAAuthService);
15
+ constructor();
18
16
  ngOnInit(): void;
19
17
  confirmNewPassword(): Promise<void>;
20
18
  openPasswordPolicy(event: Event): Promise<void>;
@@ -1,6 +1,6 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class IDEAPasswordPolicyComponent {
3
- protected env: any;
3
+ protected _env: any;
4
4
  passwordPolicy: any;
5
5
  constructor();
6
6
  static ɵfac: i0.ɵɵFactoryDeclaration<IDEAPasswordPolicyComponent, never>;
@@ -1,16 +1,12 @@
1
- import { NavController } from '@ionic/angular';
2
- import { IDEAMessageService, IDEALoadingService, IDEATranslationsService } from '@idea-ionic/common';
3
- import { IDEAAuthService } from './auth.service';
4
1
  import * as i0 from "@angular/core";
5
2
  export declare class IDEAResendLinkPage {
6
- private navCtrl;
7
- private message;
8
- private loading;
9
- private auth;
10
- private t;
11
3
  email: string;
12
4
  errorMsg: string;
13
- constructor(navCtrl: NavController, message: IDEAMessageService, loading: IDEALoadingService, auth: IDEAAuthService, t: IDEATranslationsService);
5
+ private _nav;
6
+ private _message;
7
+ private _loading;
8
+ private _auth;
9
+ private _translate;
14
10
  resendConfirmationLink(): Promise<void>;
15
11
  goToAuth(): void;
16
12
  static ɵfac: i0.ɵɵFactoryDeclaration<IDEAResendLinkPage, never>;
@@ -1,10 +1,6 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
- import { ModalController } from '@ionic/angular';
3
- import { IDEAAuthService } from '../auth.service';
4
2
  import * as i0 from "@angular/core";
5
3
  export declare class IDEASetupMFAButtonComponent implements OnInit {
6
- private modalCtrl;
7
- private auth;
8
4
  /**
9
5
  * The color of the button.
10
6
  */
@@ -18,7 +14,8 @@ export declare class IDEASetupMFAButtonComponent implements OnInit {
18
14
  */
19
15
  change: EventEmitter<boolean>;
20
16
  isMFAEnabled: boolean;
21
- constructor(modalCtrl: ModalController, auth: IDEAAuthService);
17
+ private _modal;
18
+ private _auth;
22
19
  ngOnInit(): Promise<void>;
23
20
  openMFAModal(): Promise<void>;
24
21
  static ɵfac: i0.ɵɵFactoryDeclaration<IDEASetupMFAButtonComponent, never>;
@@ -1,16 +1,12 @@
1
1
  import { OnInit } from '@angular/core';
2
- import { ModalController } from '@ionic/angular';
3
- import { IDEAAuthService } from '../auth.service';
4
- import { IDEALoadingService, IDEAMessageService } from '@idea-ionic/common';
5
2
  import * as i0 from "@angular/core";
6
3
  export declare class IDEASetupMFAModalComponent implements OnInit {
7
- private modalCtrl;
8
- private loading;
9
- private message;
10
- private auth;
11
4
  otpCode: string;
12
5
  isMFAEnabled: boolean;
13
- constructor(modalCtrl: ModalController, loading: IDEALoadingService, message: IDEAMessageService, auth: IDEAAuthService);
6
+ private _modal;
7
+ private _loading;
8
+ private _message;
9
+ private _auth;
14
10
  ngOnInit(): Promise<void>;
15
11
  private generateQRCodeCanvasByURL;
16
12
  setMFA(enable: boolean): Promise<void>;
@@ -1,14 +1,11 @@
1
- import { NavController } from '@ionic/angular';
2
- import { IDEAMessageService, IDEALoadingService, IDEATranslationsService } from '@idea-ionic/common';
3
- import { IDEAAuthService } from './auth.service';
4
1
  import * as i0 from "@angular/core";
5
2
  export declare class IDEASignInPage {
6
- private navCtrl;
7
- private message;
8
- private loading;
9
- private t;
10
- private auth;
11
- protected env: any;
3
+ protected _env: any;
4
+ private _nav;
5
+ private _message;
6
+ private _loading;
7
+ private _translate;
8
+ private _auth;
12
9
  title: string;
13
10
  registrationPossible: boolean;
14
11
  hasIntroPage: boolean;
@@ -19,7 +16,7 @@ export declare class IDEASignInPage {
19
16
  newAccountRegistered: boolean;
20
17
  errorMsg: string;
21
18
  darkMode: boolean;
22
- constructor(navCtrl: NavController, message: IDEAMessageService, loading: IDEALoadingService, t: IDEATranslationsService, auth: IDEAAuthService);
19
+ constructor();
23
20
  ionViewDidEnter(): void;
24
21
  login(): Promise<void>;
25
22
  goToIntro(): void;
@@ -1,22 +1,20 @@
1
1
  import { OnInit } from '@angular/core';
2
- import { NavController, PopoverController } from '@ionic/angular';
3
- import { IDEAMessageService, IDEALoadingService, IDEATranslationsService } from '@idea-ionic/common';
4
2
  import { IDEAAuthService } from './auth.service';
5
3
  import * as i0 from "@angular/core";
6
4
  export declare class IDEASignUpPage implements OnInit {
7
- private navCtrl;
8
- private popoverCtrl;
9
- private message;
10
- private loading;
11
- private t;
12
- auth: IDEAAuthService;
13
- protected env: any;
5
+ protected _env: any;
6
+ private _nav;
7
+ private _popover;
8
+ private _message;
9
+ private _loading;
10
+ private _translate;
11
+ _auth: IDEAAuthService;
14
12
  email: string;
15
13
  password: string;
16
14
  agreementsCheck: boolean;
17
15
  passwordPolicy: any;
18
16
  errorMsg: string;
19
- constructor(navCtrl: NavController, popoverCtrl: PopoverController, message: IDEAMessageService, loading: IDEALoadingService, t: IDEATranslationsService, auth: IDEAAuthService);
17
+ constructor();
20
18
  ngOnInit(): void;
21
19
  register(): Promise<void>;
22
20
  translationExists(key: string): boolean;