vona-module-a-jwt 5.0.24 → 5.0.25
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/dist/config/config.d.ts +2 -2
- package/dist/index.js +4 -4
- package/package.json +1 -1
package/dist/config/config.d.ts
CHANGED
|
@@ -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(
|
|
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-
|
|
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(
|
|
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:
|
|
237
|
+
issuer: env.APP_NAME
|
|
238
238
|
},
|
|
239
239
|
verifyOptions: {
|
|
240
|
-
issuer:
|
|
240
|
+
issuer: env.APP_NAME
|
|
241
241
|
}
|
|
242
242
|
},
|
|
243
243
|
clients: {
|