@citec-spbu/jwt 1.0.2 → 1.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.
|
@@ -70,7 +70,7 @@ let ConsumerModule = (() => {
|
|
|
70
70
|
})
|
|
71
71
|
],
|
|
72
72
|
providers: [optionsProvider, consumer_service_1.ConsumerService],
|
|
73
|
-
exports: [consumer_service_1.ConsumerService, constants_1.CONSUMER_OPTIONS]
|
|
73
|
+
exports: [consumer_service_1.ConsumerService, constants_1.CONSUMER_OPTIONS, jwt_1.JwtService]
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
76
|
static registerAsync(options) {
|
|
@@ -80,6 +80,7 @@ let ConsumerModule = (() => {
|
|
|
80
80
|
imports: [
|
|
81
81
|
...(options.imports || []),
|
|
82
82
|
jwt_1.JwtModule.registerAsync({
|
|
83
|
+
imports: options.imports || [],
|
|
83
84
|
useFactory: async (...args) => {
|
|
84
85
|
const consumerOptions = await options.useFactory(...args);
|
|
85
86
|
return {
|
|
@@ -91,7 +92,7 @@ let ConsumerModule = (() => {
|
|
|
91
92
|
})
|
|
92
93
|
],
|
|
93
94
|
providers: [optionsProvider, consumer_service_1.ConsumerService],
|
|
94
|
-
exports: [consumer_service_1.ConsumerService, constants_1.CONSUMER_OPTIONS]
|
|
95
|
+
exports: [consumer_service_1.ConsumerService, constants_1.CONSUMER_OPTIONS, jwt_1.JwtService]
|
|
95
96
|
};
|
|
96
97
|
}
|
|
97
98
|
};
|
|
@@ -71,7 +71,7 @@ let IssuerModule = (() => {
|
|
|
71
71
|
})
|
|
72
72
|
],
|
|
73
73
|
providers: [optionsProvider, issuer_service_1.IssuerService],
|
|
74
|
-
exports: [issuer_service_1.IssuerService, constants_1.ISSUER_OPTIONS]
|
|
74
|
+
exports: [issuer_service_1.IssuerService, constants_1.ISSUER_OPTIONS, jwt_1.JwtService]
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
77
|
static registerAsync(options) {
|
|
@@ -81,6 +81,7 @@ let IssuerModule = (() => {
|
|
|
81
81
|
imports: [
|
|
82
82
|
...(options.imports || []),
|
|
83
83
|
jwt_1.JwtModule.registerAsync({
|
|
84
|
+
imports: options.imports || [],
|
|
84
85
|
useFactory: async (...args) => {
|
|
85
86
|
const issuerOptions = await options.useFactory(...args);
|
|
86
87
|
return {
|
|
@@ -92,7 +93,7 @@ let IssuerModule = (() => {
|
|
|
92
93
|
})
|
|
93
94
|
],
|
|
94
95
|
providers: [optionsProvider, issuer_service_1.IssuerService],
|
|
95
|
-
exports: [issuer_service_1.IssuerService, constants_1.ISSUER_OPTIONS]
|
|
96
|
+
exports: [issuer_service_1.IssuerService, constants_1.ISSUER_OPTIONS, jwt_1.JwtService]
|
|
96
97
|
};
|
|
97
98
|
}
|
|
98
99
|
};
|