@wecom/cloudbase-framework-plugin-callback
Advanced tools
Comparing version 0.3.0-alpha.10 to 0.3.0-alpha.11
@@ -10,3 +10,2 @@ "use strict"; | ||
'ww-agent-jsapi-ticket', | ||
'ww-session', | ||
]; | ||
@@ -13,0 +12,0 @@ /** |
@@ -6,2 +6,2 @@ /** | ||
*/ | ||
export declare function handleCreateAuth(data: any, id: string): Promise<any>; | ||
export declare function handleCreateAuth(data: any, id: string): Promise<import("@wecom/cloudbase-framework-plugin-actions").ConsumeAuthCodeRes>; |
@@ -14,8 +14,14 @@ "use strict"; | ||
} | ||
const { authInfo } = await cloudbase_framework_plugin_actions_1.createAuth({ | ||
const res = await cloudbase_framework_plugin_actions_1.consumeAuthCode({ | ||
suiteId: id, | ||
code: data.AuthCode, | ||
}); | ||
return authInfo; | ||
await cloudbase_framework_plugin_actions_1.setAuthInfo({ | ||
suiteId: id, | ||
corpId: res.corpId, | ||
agentId: res.agentId, | ||
permanentCode: res.permanentCode, | ||
}); | ||
return res; | ||
} | ||
exports.handleCreateAuth = handleCreateAuth; |
{ | ||
"name": "@wecom/cloudbase-framework-plugin-callback", | ||
"version": "0.3.0-alpha.10", | ||
"version": "0.3.0-alpha.11", | ||
"main": "lib/index.js", | ||
@@ -16,4 +16,4 @@ "types": "lib/index.d.ts", | ||
"@cloudbase/node-sdk": "^2.3.5", | ||
"@wecom/cloudbase-framework-plugin-actions": "0.3.0-alpha.10", | ||
"@wecom/cloudbase-framework-plugin-util": "0.3.0-alpha.10", | ||
"@wecom/cloudbase-framework-plugin-actions": "0.3.0-alpha.11", | ||
"@wecom/cloudbase-framework-plugin-util": "0.3.0-alpha.11", | ||
"fast-xml-parser": "^3.17.4" | ||
@@ -20,0 +20,0 @@ }, |
23016
342
+ Added@wecom/cloudbase-framework-plugin-actions@0.3.0-alpha.11(transitive)
+ Added@wecom/cloudbase-framework-plugin-util@0.3.0-alpha.11(transitive)
- Removed@wecom/cloudbase-framework-plugin-actions@0.3.0-alpha.10(transitive)
- Removed@wecom/cloudbase-framework-plugin-util@0.3.0-alpha.10(transitive)
Updated@wecom/cloudbase-framework-plugin-actions@0.3.0-alpha.11
Updated@wecom/cloudbase-framework-plugin-util@0.3.0-alpha.11