vona-module-a-jwt 5.0.27 → 5.0.29
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/bean.jwt.d.ts +1 -0
- package/dist/index.js +3 -0
- package/package.json +1 -1
package/dist/bean/bean.jwt.d.ts
CHANGED
|
@@ -9,4 +9,5 @@ export declare class BeanJwt extends BeanBase {
|
|
|
9
9
|
createOauthAuthToken(payloadData: IPayloadData, options?: IJwtSignOptions): Promise<string>;
|
|
10
10
|
createOauthState(payloadData: IAuthenticateStrategyState, options?: IJwtSignOptions): Promise<string>;
|
|
11
11
|
createOauthCode(payloadData: IPayloadData, options?: IJwtSignOptions): Promise<string>;
|
|
12
|
+
extractAuthTokenFromAllWays(): string | undefined;
|
|
12
13
|
}
|
package/dist/index.js
CHANGED
|
@@ -126,6 +126,9 @@ let BeanJwt = (_dec$3 = Bean(), _dec2$3 = BeanInfo({
|
|
|
126
126
|
async createOauthCode(payloadData, options) {
|
|
127
127
|
return await this.get('code').sign(payloadData, options);
|
|
128
128
|
}
|
|
129
|
+
extractAuthTokenFromAllWays() {
|
|
130
|
+
return this.scope.service.jwtExtract.fromAllWays();
|
|
131
|
+
}
|
|
129
132
|
}) || _class$3) || _class$3);
|
|
130
133
|
|
|
131
134
|
const re = /(\S+)\s+(\S+)/;
|