vona-module-a-user 5.0.42 → 5.0.44
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/bean/meta.runtime.d.ts +2 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { IMetaRuntimeExecute } from 'vona-module-a-runtime';
|
|
2
2
|
import { BeanBase } from 'vona';
|
|
3
|
-
export type
|
|
3
|
+
export type TypeMetaRuntimeResult = {
|
|
4
4
|
accessToken?: string;
|
|
5
5
|
} | undefined;
|
|
6
6
|
export declare class MetaRuntime extends BeanBase implements IMetaRuntimeExecute {
|
|
7
|
-
execute(): Promise<
|
|
7
|
+
execute(): Promise<TypeMetaRuntimeResult>;
|
|
8
8
|
}
|
package/dist/index.js
CHANGED
|
@@ -571,7 +571,7 @@ let MetaRuntime = (_dec$1 = Meta(), _dec2$1 = BeanInfo({
|
|
|
571
571
|
module: "a-user"
|
|
572
572
|
}), _dec$1(_class$1 = _dec2$1(_class$1 = class MetaRuntime extends BeanBase {
|
|
573
573
|
async execute() {
|
|
574
|
-
if (
|
|
574
|
+
if (this.app.meta.isProd) return;
|
|
575
575
|
// signin
|
|
576
576
|
const jwt = await this.bean.passport.signinSystem('dev', '-1');
|
|
577
577
|
const accessToken = jwt.accessToken;
|