vona-module-a-jwt 5.0.24 → 5.0.26

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,3 +1,3 @@
1
- import type { VonaApplication } from 'vona';
1
+ import type { VonaApplication, VonaConfigEnv } from 'vona';
2
2
  import type { ConfigJwt } from '../types/jwt.ts';
3
- export declare function config(app: VonaApplication): ConfigJwt;
3
+ export declare function config(_app: VonaApplication, env: VonaConfigEnv): ConfigJwt;
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import { BeanInfo, BeanBase, deepExtend, cast, BeanScopeBase } from 'vona';
2
2
  import ms from 'ms';
3
3
  import { Service, Bean, Scope } from 'vona-module-a-bean';
4
4
  import jwt from 'jsonwebtoken';
5
- import { Api } from 'vona-module-a-openapi';
5
+ import { Api } from 'vona-module-a-openapiutils';
6
6
  import { Dto } from 'vona-module-a-web';
7
7
 
8
8
  var _dec$4, _dec2$4, _class$4;
@@ -210,7 +210,7 @@ let DtoJwtToken = (_dec$1 = Dto(), _dec2$1 = BeanInfo({
210
210
  initializer: null
211
211
  }), _class2)) || _class$1) || _class$1);
212
212
 
213
- function config(app) {
213
+ function config(_app, env) {
214
214
  return {
215
215
  field: {
216
216
  payload: {
@@ -234,10 +234,10 @@ function config(app) {
234
234
  base: {
235
235
  secret: undefined,
236
236
  signOptions: {
237
- issuer: app.meta.env.APP_NAME
237
+ issuer: env.APP_NAME
238
238
  },
239
239
  verifyOptions: {
240
- issuer: app.meta.env.APP_NAME
240
+ issuer: env.APP_NAME
241
241
  }
242
242
  },
243
243
  clients: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vona-module-a-jwt",
3
3
  "type": "module",
4
- "version": "5.0.24",
4
+ "version": "5.0.26",
5
5
  "title": "a-jwt",
6
6
  "vonaModule": {
7
7
  "dependencies": {}
@@ -28,7 +28,7 @@
28
28
  "dependencies": {
29
29
  "@types/jsonwebtoken": "^9.0.10",
30
30
  "@types/ms": "^2.1.0",
31
- "jsonwebtoken": "^9.0.2",
31
+ "jsonwebtoken": "^9.0.3",
32
32
  "ms": "^2.1.3"
33
33
  },
34
34
  "devDependencies": {