Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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
6 changes: 0 additions & 6 deletions src/sso/interfaces/authorization-url-options.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,3 @@ export interface SSOAuthorizationURLOptions {
redirectUri: string;
state?: string;
}

/**
* @deprecated Use SSOAuthorizationURLOptions instead
*/
// tslint:disable-next-line:no-empty-interface
export interface AuthorizationURLOptions extends SSOAuthorizationURLOptions {}
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