@nocobase/auth 2.0.22 → 2.1.0-alpha.10

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.
@@ -20,6 +20,7 @@ export declare class JwtService {
20
20
  blacklist: ITokenBlacklistService;
21
21
  private expiresIn;
22
22
  private secret;
23
+ getSecret(): string | Buffer;
23
24
  sign(payload: SignPayload, options?: SignOptions): string;
24
25
  decode(token: string): Promise<JwtPayload>;
25
26
  /**
@@ -57,6 +57,9 @@ const _JwtService = class _JwtService {
57
57
  secret() {
58
58
  return this.options.secret;
59
59
  }
60
+ getSecret() {
61
+ return this.secret();
62
+ }
60
63
  /* istanbul ignore next -- @preserve */
61
64
  sign(payload, options) {
62
65
  const opt = { expiresIn: this.expiresIn(), ...options };
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@nocobase/auth",
3
- "version": "2.0.22",
3
+ "version": "2.1.0-alpha.10",
4
4
  "description": "",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./lib/index.js",
7
7
  "types": "./lib/index.d.ts",
8
8
  "dependencies": {
9
- "@nocobase/actions": "2.0.22",
10
- "@nocobase/cache": "2.0.22",
11
- "@nocobase/database": "2.0.22",
12
- "@nocobase/resourcer": "2.0.22",
13
- "@nocobase/utils": "2.0.22",
9
+ "@nocobase/actions": "2.1.0-alpha.10",
10
+ "@nocobase/cache": "2.1.0-alpha.10",
11
+ "@nocobase/database": "2.1.0-alpha.10",
12
+ "@nocobase/resourcer": "2.1.0-alpha.10",
13
+ "@nocobase/utils": "2.1.0-alpha.10",
14
14
  "@types/jsonwebtoken": "^9.0.9",
15
15
  "jsonwebtoken": "^9.0.2"
16
16
  },
@@ -19,5 +19,5 @@
19
19
  "url": "git+https://github.com/nocobase/nocobase.git",
20
20
  "directory": "packages/auth"
21
21
  },
22
- "gitHead": "7b703580c4bb60f1e5e44c8fd685141bb8b3a47c"
22
+ "gitHead": "ce790d46c0a5768ca9618c7d0d77ab8300de75c8"
23
23
  }