@idea-ionic/auth 7.2.18 → 8.0.1

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,42 +1,44 @@
1
1
  {
2
2
  "name": "@idea-ionic/auth",
3
- "version": "7.2.18",
3
+ "version": "8.0.1",
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)",
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "git+https://github.com/iter-idea/IDEA-Ionic7-extra"
9
+ "url": "git+https://github.com/iter-idea/IDEA-Ionic8-extra"
10
10
  },
11
- "homepage": "https://github.com/iter-idea/IDEA-Ionic7-extra/tree/main/modules/auth",
11
+ "homepage": "https://github.com/iter-idea/IDEA-Ionic8-extra/tree/main/modules/auth",
12
12
  "keywords": [
13
13
  "idea",
14
14
  "ionic",
15
15
  "angular"
16
16
  ],
17
17
  "bugs": {
18
- "url": "https://github.com/iter-idea/IDEA-Ionic7-extra/issues"
19
- },
20
- "dependencies": {
21
- "amazon-cognito-identity-js": "^6.3.7",
22
- "tslib": "^2.4.1"
18
+ "url": "https://github.com/iter-idea/IDEA-Ionic8-extra/issues"
23
19
  },
24
20
  "peerDependencies": {
25
- "@angular/common": "^17.0.2",
26
- "@angular/core": "^17.0.2",
27
- "@angular/forms": "^17.0.2",
28
- "@angular/platform-browser": "^17.0.2",
29
- "@angular/platform-browser-dynamic": "^17.0.2",
30
- "@angular/router": "^17.0.2",
31
- "@capacitor/browser": "^5.1.0",
32
- "@capacitor/core": "^5.6.0",
33
- "@ionic/angular": "^7.4.0",
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",
27
+ "@capacitor/browser": "^6.0.1",
28
+ "@capacitor/core": "6.1.1",
29
+ "@idea-ionic/common": "^8.x.x",
30
+ "@ionic/angular": "^8.0.0",
34
31
  "@ionic/storage-angular": "^4.0.0",
35
32
  "idea-toolbox": "^7.x.x",
36
33
  "qrcode": "^1.5.3",
37
34
  "rxjs": "~7.8.0",
38
- "zone.js": "~0.14.2"
35
+ "zone.js": "~0.14.3"
39
36
  },
37
+ "dependencies": {
38
+ "amazon-cognito-identity-js": "^6.3.7",
39
+ "tslib": "^2.4.1"
40
+ },
41
+ "sideEffects": false,
40
42
  "module": "fesm2022/idea-ionic-auth.mjs",
41
43
  "typings": "index.d.ts",
42
44
  "exports": {
@@ -49,6 +51,5 @@
49
51
  "esm": "./esm2022/idea-ionic-auth.mjs",
50
52
  "default": "./fesm2022/idea-ionic-auth.mjs"
51
53
  }
52
- },
53
- "sideEffects": false
54
+ }
54
55
  }
@@ -1,5 +1,5 @@
1
1
  import { CognitoUser } from 'amazon-cognito-identity-js';
2
- import { IDEAStorageService } from '@idea-ionic/common';
2
+ import { IDEAStorageService, IDEATranslationsService } from '@idea-ionic/common';
3
3
  import * as i0 from "@angular/core";
4
4
  /**
5
5
  * Cognito wrapper to manage the authentication flow.
@@ -9,6 +9,7 @@ import * as i0 from "@angular/core";
9
9
  export declare class IDEAAuthService {
10
10
  private storage;
11
11
  protected env: any;
12
+ protected t: IDEATranslationsService;
12
13
  /**
13
14
  * The name of the Cognito's user attribute which contains the key of the last device to login in this project.
14
15
  */
@@ -128,6 +129,10 @@ export declare class IDEAAuthService {
128
129
  * In case there are errors, they are returned as an array of strings.
129
130
  */
130
131
  validatePasswordAgainstPolicy(password: string): string[];
132
+ /**
133
+ * Validate the password against offline and online databases, to avoid common and exploited passwords.
134
+ */
135
+ validatePasswordAgainstDatabases(password: string, customStringsToAvoid?: string[]): Promise<string[]>;
131
136
  /**
132
137
  * Get a complete password policy pattern, based on the environments configuration, to use on password input fields.
133
138
  * Note: some of the symbols couldn't be included because unsupported by the input[pattern] attribute.
@@ -0,0 +1 @@
1
+ export declare const COMMON_PASSWORDS_TOP_1000: string[];