@smartsoft001/auth-shell-app-services 1.1.32 → 1.1.33
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": "@smartsoft001/auth-shell-app-services",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.33",
|
|
4
4
|
"description": "Utils to authorization",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"@nestjs/common": "9.0.9",
|
|
21
21
|
"@nestjs/core": "9.0.9",
|
|
22
|
-
"@smartsoft001/auth-domain": "1.1.
|
|
22
|
+
"@smartsoft001/auth-domain": "1.1.33",
|
|
23
23
|
"typeorm": "0.2.29",
|
|
24
|
-
"@smartsoft001/domain-core": "1.1.
|
|
25
|
-
"@smartsoft001/models": "1.1.
|
|
24
|
+
"@smartsoft001/domain-core": "1.1.33",
|
|
25
|
+
"@smartsoft001/models": "1.1.33",
|
|
26
26
|
"reflect-metadata": "0.1.13",
|
|
27
|
-
"@smartsoft001/utils": "1.1.
|
|
27
|
+
"@smartsoft001/utils": "1.1.33",
|
|
28
28
|
"@angular/common": "15.0.2",
|
|
29
29
|
"@angular/core": "15.0.2",
|
|
30
30
|
"lodash": "4.17.21",
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
"flatted": "3.2.7",
|
|
33
33
|
"md5": "2.3.0",
|
|
34
34
|
"rxjs": "7.5.6",
|
|
35
|
-
"@smartsoft001/users": "1.1.
|
|
35
|
+
"@smartsoft001/users": "1.1.33",
|
|
36
36
|
"@angular/platform-browser-dynamic": "15.0.2",
|
|
37
37
|
"@nestjs/jwt": "7.2.0",
|
|
38
38
|
"@nestjs/typeorm": "7.1.5",
|
|
39
|
-
"@smartsoft001/fb": "1.1.
|
|
39
|
+
"@smartsoft001/fb": "1.1.33",
|
|
40
40
|
"@nestjs/axios": "0.1.0",
|
|
41
|
-
"@smartsoft001/google": "1.1.
|
|
41
|
+
"@smartsoft001/google": "1.1.33",
|
|
42
42
|
"tslib": "2.4.1"
|
|
43
43
|
}
|
|
44
44
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ModuleRef } from "@nestjs/core";
|
|
2
|
+
import { Request } from "express";
|
|
2
3
|
import { IAuthToken, IAuthTokenRequest, TokenFactory } from "@smartsoft001/auth-domain";
|
|
3
4
|
export declare class AuthService {
|
|
4
5
|
private factory;
|
|
5
6
|
private moduleRef;
|
|
6
7
|
constructor(factory: TokenFactory, moduleRef: ModuleRef);
|
|
7
|
-
create(req: IAuthTokenRequest): Promise<IAuthToken>;
|
|
8
|
+
create(req: IAuthTokenRequest, httpReq?: Request): Promise<IAuthToken>;
|
|
8
9
|
private getPayloadProvider;
|
|
9
10
|
private getValidationProvider;
|
|
10
11
|
private getUserProvider;
|
|
@@ -11,8 +11,9 @@ let AuthService = AuthService_1 = class AuthService {
|
|
|
11
11
|
this.factory = factory;
|
|
12
12
|
this.moduleRef = moduleRef;
|
|
13
13
|
}
|
|
14
|
-
create(req) {
|
|
14
|
+
create(req, httpReq) {
|
|
15
15
|
return this.factory.create({
|
|
16
|
+
httpReq: httpReq,
|
|
16
17
|
request: req,
|
|
17
18
|
payloadProvider: this.getPayloadProvider(),
|
|
18
19
|
validationProvider: this.getValidationProvider(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.service.js","sourceRoot":"","sources":["../../../../../../../../../libs/auth/shell/app-services/src/lib/services/auth/auth.service.ts"],"names":[],"mappings":";;;;;AAAA,2CAAkD;AAClD,uCAAyC;
|
|
1
|
+
{"version":3,"file":"auth.service.js","sourceRoot":"","sources":["../../../../../../../../../libs/auth/shell/app-services/src/lib/services/auth/auth.service.ts"],"names":[],"mappings":";;;;;AAAA,2CAAkD;AAClD,uCAAyC;AAGzC,2DAQmC;AA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