File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
functions/zoom-meeting-webhook-handler Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -17,9 +17,7 @@ const ZOOM_SECRET =
17
17
18
18
const handler = async function ( event , context ) {
19
19
try {
20
- const message = `v0:${
21
- event . headers [ 'x-zm-request-timestamp' ]
22
- } :${ JSON . stringify ( event . body ) } `;
20
+ const message = `v0:${ event . headers [ 'x-zm-request-timestamp' ] } :${ event . body } ` ;
23
21
24
22
const hashForVerify = crypto
25
23
. createHmac ( 'sha256' , ZOOM_SECRET )
@@ -28,6 +26,13 @@ const handler = async function (event, context) {
28
26
29
27
const signature = `v0=${ hashForVerify } ` ;
30
28
29
+ console . log ( 'message' ) ;
30
+ console . log ( message ) ;
31
+ console . log ( 'signature' ) ;
32
+ console . log ( signature ) ;
33
+ console . log ( 'x-zm-signature' ) ;
34
+ console . log ( event . headers [ 'x-zm-signature' ] ) ;
35
+
31
36
if ( event . headers [ 'x-zm-signature' ] !== signature ) {
32
37
console . log ( 'Unauthorized' , event ) ;
33
38
return {
You can’t perform that action at this time.
0 commit comments