@tc-libs/authentication 0.23.0 → 0.24.0
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,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tc-libs/authentication",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.24.0",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"tslib": "^2.3.0",
|
|
6
6
|
"@nestjs/common": "^10.0.2",
|
|
7
7
|
"@nestjs/passport": "^10.0.1",
|
|
8
|
-
"@tc-libs/errors": "0.
|
|
8
|
+
"@tc-libs/errors": "0.24.0",
|
|
9
9
|
"rxjs": "^7.8.0",
|
|
10
10
|
"passport-jwt": "^4.0.1",
|
|
11
|
-
"@tc-libs/helper": "0.
|
|
11
|
+
"@tc-libs/helper": "0.24.0",
|
|
12
12
|
"@nestjs/core": "^10.0.2",
|
|
13
13
|
"lodash": "^4.17.21"
|
|
14
14
|
},
|
|
@@ -4,7 +4,18 @@ exports.AuthModule = void 0;
|
|
|
4
4
|
const guards_1 = require("./guards");
|
|
5
5
|
const services_1 = require("./services");
|
|
6
6
|
const authentication_module_options_1 = require("./authentication.module.options");
|
|
7
|
-
const
|
|
7
|
+
const auth_combined_guard_1 = require("./guards/combined/auth.combined.guard");
|
|
8
|
+
const providers = [
|
|
9
|
+
services_1.AuthService,
|
|
10
|
+
guards_1.AuthJwtAccessStrategy,
|
|
11
|
+
auth_combined_guard_1.CombinedAuthGuard,
|
|
12
|
+
guards_1.AuthJwtAccessGuard,
|
|
13
|
+
guards_1.AuthJwtRefreshStrategy,
|
|
14
|
+
guards_1.AuthPermissionGuard,
|
|
15
|
+
guards_1.AuthPayloadPermissionGuard,
|
|
16
|
+
guards_1.AuthJwtRefreshGuard,
|
|
17
|
+
guards_1.AuthPayloadAccessForGuard,
|
|
18
|
+
];
|
|
8
19
|
class AuthModule {
|
|
9
20
|
static register(options, isGlobal) {
|
|
10
21
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authentication.module.js","sourceRoot":"","sources":["../../../../packages/authentication/src/authentication.module.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"authentication.module.js","sourceRoot":"","sources":["../../../../packages/authentication/src/authentication.module.ts"],"names":[],"mappings":";;;AACA,qCAQkB;AAClB,yCAAyC;AACzC,mFAGyC;AACzC,+EAA0E;AAE1E,MAAM,SAAS,GAAG;IAChB,sBAAW;IACX,8BAAqB;IACrB,uCAAiB;IACjB,2BAAkB;IAClB,+BAAsB;IACtB,4BAAmB;IACnB,mCAA0B;IAC1B,4BAAmB;IACnB,kCAAyB;CAC1B,CAAC;AAEF,MAAa,UAAU;IACrB,MAAM,CAAC,QAAQ,CACb,OAAoC,EACpC,QAAkB;QAElB,OAAO;YACL,MAAM,EAAE,UAAU;YAClB,OAAO,EAAE,EAAE;YACX,SAAS,EAAE;gBACT,EAAE,OAAO,EAAE,6DAA6B,EAAE,QAAQ,EAAE,OAAO,EAAE;gBAC7D,GAAG,SAAS;aACb;YACD,OAAO,EAAE,CAAC,sBAAW,CAAC;YACtB,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,aAAa,CAClB,OAAyC,EACzC,QAAkB;QAElB,OAAO;YACL,MAAM,EAAE,UAAU;YAClB,OAAO,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC;YACrC,SAAS,EAAE;gBACT;oBACE,OAAO,EAAE,6DAA6B;oBACtC,UAAU,EAAE,OAAO,CAAC,UAAU;oBAC9B,MAAM,EAAE,OAAO,CAAC,MAAM;iBACvB;gBACD,GAAG,SAAS;aACb;YACD,OAAO,EAAE,CAAC,sBAAW,CAAC;YACtB,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;CACF;AApCD,gCAoCC"}
|