@bearei/server-common 0.0.78 → 0.0.80
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.
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { ConfigService } from '@nestjs/config';
|
|
2
1
|
import { JwtService } from '@nestjs/jwt';
|
|
3
2
|
import { JWTSignAsyncOptions } from './jwt.interface';
|
|
4
3
|
export declare class JWTService {
|
|
5
|
-
private readonly configService;
|
|
6
4
|
private readonly jwtService;
|
|
7
|
-
constructor(
|
|
5
|
+
constructor(jwtService: JwtService);
|
|
8
6
|
signAsync({ issuer, audience, jwtId, notBefore, jwtSignOptions }: JWTSignAsyncOptions): (subject: string) => Promise<string>;
|
|
9
7
|
verifyAsync(token: string): Promise<any>;
|
|
10
8
|
}
|
package/dist/jwt/jwt.service.js
CHANGED
|
@@ -14,7 +14,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.JWTService = void 0;
|
|
16
16
|
const common_1 = require("@nestjs/common");
|
|
17
|
-
const config_1 = require("@nestjs/config");
|
|
18
17
|
const jwt_1 = require("@nestjs/jwt");
|
|
19
18
|
const dayjs_1 = __importDefault(require("dayjs"));
|
|
20
19
|
const utc_1 = __importDefault(require("dayjs/plugin/utc"));
|
|
@@ -22,10 +21,8 @@ const nanoid_1 = require("nanoid");
|
|
|
22
21
|
const app_interface_1 = require("../app.interface");
|
|
23
22
|
const util_1 = require("../util");
|
|
24
23
|
let JWTService = class JWTService {
|
|
25
|
-
configService;
|
|
26
24
|
jwtService;
|
|
27
|
-
constructor(
|
|
28
|
-
this.configService = configService;
|
|
25
|
+
constructor(jwtService) {
|
|
29
26
|
this.jwtService = jwtService;
|
|
30
27
|
dayjs_1.default.extend(utc_1.default);
|
|
31
28
|
}
|
|
@@ -51,7 +48,6 @@ let JWTService = class JWTService {
|
|
|
51
48
|
exports.JWTService = JWTService;
|
|
52
49
|
exports.JWTService = JWTService = __decorate([
|
|
53
50
|
(0, common_1.Injectable)(),
|
|
54
|
-
__metadata("design:paramtypes", [
|
|
55
|
-
jwt_1.JwtService])
|
|
51
|
+
__metadata("design:paramtypes", [jwt_1.JwtService])
|
|
56
52
|
], JWTService);
|
|
57
53
|
//# sourceMappingURL=jwt.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jwt.service.js","sourceRoot":"","sources":["../../src/jwt/jwt.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAyC;AACzC,
|
|
1
|
+
{"version":3,"file":"jwt.service.js","sourceRoot":"","sources":["../../src/jwt/jwt.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAyC;AACzC,qCAAsC;AACtC,kDAAyB;AACzB,2DAAkC;AAClC,mCAA6B;AAC7B,oDAAyC;AACzC,kCAAqC;AAI9B,IAAM,UAAU,GAAhB,MAAM,UAAU;IACU;IAA7B,YAA6B,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;QAC/C,eAAK,CAAC,MAAM,CAAC,aAAG,CAAC,CAAA;IACrB,CAAC;IAED,SAAS,CAAC,EAAC,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,cAAc,EAAsB;QAC/E,OAAO,KAAK,EAAE,OAAe,EAAE,EAAE;YAC7B,MAAM,OAAO,GAAG;gBACZ,GAAG,EAAE,QAAQ;gBACb,GAAG,EAAE,MAAM;gBACX,GAAG,EAAE,KAAK,IAAI,IAAA,eAAM,GAAE;gBACtB,GAAG,EAAE,SAAS,IAAI,QAAQ,CAAC,GAAG,eAAK,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,GAAG,IAAI,EAAE,CAAC;gBAC7D,GAAG,EAAE,OAAO;aACf,CAAA;YAED,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,OAAO,EAAE,cAAc,CAAC,CAAA;YAE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