File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 11// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22
33import { APIResource } from '../core/resource' ;
4- import { toBase64 } from '../internal/utils' ;
54import * as FilesAPI from './files/files' ;
65import { Webhook } from 'standardwebhooks' ;
76
@@ -17,7 +16,7 @@ export class Webhooks extends APIResource {
1716 if ( headers !== undefined ) {
1817 const keyStr : string | null = key === undefined ? this . _client . webhookSecret : key ;
1918 if ( keyStr === null ) throw new Error ( 'Webhook key must not be null in order to unwrap' ) ;
20- const wh = new Webhook ( toBase64 ( keyStr ) ) ;
19+ const wh = new Webhook ( keyStr ) ;
2120 wh . verify ( body , headers ) ;
2221 }
2322 return JSON . parse ( body ) as UnwrapWebhookEvent ;
You can’t perform that action at this time.
0 commit comments