We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 796b55a commit ed81808Copy full SHA for ed81808
2 files changed
src/alipay.ts
@@ -453,6 +453,10 @@ export class AlipaySdk {
453
authString += `,app_cert_sn=${this.config.appCertSn}`;
454
}
455
authString += `,nonce=${randomUUID()},timestamp=${Date.now()}`;
456
+ if (this.config.additionalAuthInfo) {
457
+ authString += `,${this.config.additionalAuthInfo}`;
458
+ }
459
+
460
// 签名字符串拼接格式:
461
//
462
// ```txt
src/types.ts
@@ -60,4 +60,6 @@ export interface AlipaySdkConfig {
60
wsServiceUrl?: string;
61
/** httpClient 请求代理 */
62
proxyAgent?: ProxyAgent;
63
+ /** Authorization 扩展信息 */
64
+ additionalAuthInfo?: string;
65
0 commit comments