@vynelix/nestjs-multi-auth 0.1.6 → 0.1.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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
# v0.1.6
|
|
2
2
|
## Cookie Scoping
|
|
3
3
|
This release adds subdomain-aware cookie scoping for authentication. Cookies are now isolated per subdomain, enabling multiple accounts to be securely maintained in the same browser session across different tenant or vendor domains without session collision.
|
|
4
|
+
|
|
5
|
+
# v0.1.7
|
|
6
|
+
## Cookie Dependency Fix
|
|
7
|
+
This release addresses `UnknownDependenciesException [Error]: Nest can't resolve dependencies of the AuthCookieService (?). Please make sure that the argument at index [0] is available in the current module.` and fixed the issue
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Request } from "express";
|
|
2
2
|
import { AuthModuleOptions, CookieNameConfig } from "../interfaces/auth-module-options.interface";
|
|
3
3
|
export declare class AuthCookieService {
|
|
4
|
-
private
|
|
4
|
+
private options;
|
|
5
5
|
constructor(options: AuthModuleOptions);
|
|
6
6
|
private getNamespace;
|
|
7
7
|
get(req: Request): CookieNameConfig;
|
|
@@ -8,9 +8,13 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
11
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
15
|
exports.AuthCookieService = void 0;
|
|
13
16
|
const common_1 = require("@nestjs/common");
|
|
17
|
+
const auth_module_options_interface_1 = require("../interfaces/auth-module-options.interface");
|
|
14
18
|
let AuthCookieService = class AuthCookieService {
|
|
15
19
|
constructor(options) {
|
|
16
20
|
this.options = options;
|
|
@@ -38,6 +42,7 @@ let AuthCookieService = class AuthCookieService {
|
|
|
38
42
|
exports.AuthCookieService = AuthCookieService;
|
|
39
43
|
exports.AuthCookieService = AuthCookieService = __decorate([
|
|
40
44
|
(0, common_1.Injectable)(),
|
|
45
|
+
__param(0, (0, common_1.Inject)(auth_module_options_interface_1.AUTH_MODULE_OPTIONS)),
|
|
41
46
|
__metadata("design:paramtypes", [Object])
|
|
42
47
|
], AuthCookieService);
|
|
43
48
|
//# sourceMappingURL=cookie-namespace.resolver.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cookie-namespace.resolver.js","sourceRoot":"","sources":["../../../src/auth/core/cookie-namespace.resolver.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cookie-namespace.resolver.js","sourceRoot":"","sources":["../../../src/auth/core/cookie-namespace.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAoD;AAEpD,+FAAuH;AAGhH,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAC5B,YACyC,OAA0B;QAA1B,YAAO,GAAP,OAAO,CAAmB;IAC9D,CAAC;IAEE,YAAY,CAAC,GAAY;QAC/B,MAAM,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;QAC9B,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAElC,IAAI,KAAK,CAAC,MAAM,IAAI,CAAC,EAAE,CAAC;YACtB,OAAO,MAAM,CAAC;QAChB,CAAC;QAED,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACpD,CAAC;IAED,GAAG,CAAC,GAAY;QACd,sCAAsC;QACtC,IAAI,IAAI,CAAC,OAAO,CAAC,kBAAkB,EAAE,CAAC;YACpC,OAAO,IAAI,CAAC,OAAO,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC;QAC9C,CAAC;QACD,MAAM,SAAS,GACb,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;QAEzB,OAAO;YACL,eAAe,EAAE,GAAG,SAAS,eAAe;YAC5C,gBAAgB,EAAE,GAAG,SAAS,gBAAgB;SAC/C,CAAC;IACJ,CAAC;CACF,CAAA;AA7BY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,mBAAU,GAAE;IAGN,WAAA,IAAA,eAAM,EAAC,mDAAmB,CAAC,CAAA;;GAFrB,iBAAiB,CA6B7B"}
|