16 lines
474 B
TypeScript
16 lines
474 B
TypeScript
export declare class WechatWebInstance {
|
|
appId: string;
|
|
appSecret: string;
|
|
accessToken?: string;
|
|
refreshAccessTokenHandler?: any;
|
|
constructor(appId: string, appSecret: string);
|
|
private access;
|
|
code2Session(code: string): Promise<{
|
|
sessionKey: string;
|
|
openId: string;
|
|
unionId: string;
|
|
}>;
|
|
private refreshAccessToken;
|
|
decryptData(sessionKey: string, encryptedData: string, iv: string, signature: string): any;
|
|
}
|