Skip to content

Commit

Permalink
feat: new message card verification (larksuite#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
mazhe-nerd authored Apr 10, 2024
1 parent b542cd4 commit 4ef99aa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions dispatcher/request-handle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@ export default class RequestHandle {
}

checkIsCardEventValidated(data: any): boolean {
/**
* 1. new message card encrypt ('encrypt' in data)
* 2. new message card but not encrypt ('schema' in data)
*/
if ('encrypt' in data || 'schema' in data) {
return this.checkIsEventValidated(data);
}

const {
'x-lark-request-timestamp': timestamp,
'x-lark-request-nonce': nonce,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@larksuiteoapi/node-sdk",
"version": "1.26.0",
"version": "1.27.0",
"description": "larksuite open sdk for nodejs",
"keywords": [
"feishu",
Expand Down

0 comments on commit 4ef99aa

Please sign in to comment.