Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/webhooks/webhooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ export class Webhooks {
secret,
tolerance = 180000,
}: {
payload: unknown;
payload: Record<string, unknown>;
sigHeader: string;
secret: string;
tolerance?: number;
}): Promise<Event> {
const options = { payload, sigHeader, secret, tolerance };
await this.verifyHeader(options);

const webhookPayload = payload as EventResponse;
const webhookPayload = payload as unknown as EventResponse;

return deserializeEvent(webhookPayload);
}
Expand Down
5 changes: 4 additions & 1 deletion src/workos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ export class WorkOS {
readonly widgets = new Widgets(this);
readonly vault = new Vault(this);

constructor(readonly key?: string, readonly options: WorkOSOptions = {}) {
constructor(
readonly key?: string,
readonly options: WorkOSOptions = {},
) {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure why CI was giving me a formatter error for this.

if (!key) {
// process might be undefined in some environments
this.key =
Expand Down
Loading