Skip to content

Commit e7b7d8e

Browse files
committed
remove webhooks and exports exports
1 parent 9c1896e commit e7b7d8e

File tree

2 files changed

+1
-30
lines changed

2 files changed

+1
-30
lines changed

src/index.client.spec.ts

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { userManagement, sso, webhooks, actions } from './index.client';
1+
import { userManagement, sso } from './index.client';
22

33
describe('Client Exports', () => {
44
describe('userManagement exports', () => {
@@ -44,23 +44,4 @@ describe('Client Exports', () => {
4444
expect(url).toContain('provider=GoogleOAuth');
4545
});
4646
});
47-
48-
describe('webhooks exports', () => {
49-
it('should expose webhooks service', () => {
50-
expect(webhooks).toBeDefined();
51-
expect(webhooks.verifyHeader).toBeDefined();
52-
expect(webhooks.computeSignature).toBeDefined();
53-
expect(webhooks.constructEvent).toBeDefined();
54-
});
55-
});
56-
57-
describe('actions exports', () => {
58-
it('should expose actions service', () => {
59-
expect(actions).toBeDefined();
60-
expect(actions.verifyHeader).toBeDefined();
61-
expect(actions.signResponse).toBeDefined();
62-
expect(actions.constructAction).toBeDefined();
63-
});
64-
});
6547
});
66-

src/index.client.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,6 @@
77
export * as userManagement from './client/user-management';
88
export * as sso from './client/sso';
99

10-
// Export webhooks and actions (these don't need API keys)
11-
import { Webhooks } from './webhooks/webhooks';
12-
import { Actions } from './actions/actions';
13-
import { SubtleCryptoProvider } from './common/crypto/subtle-crypto-provider';
14-
15-
const cryptoProvider = new SubtleCryptoProvider();
16-
export const webhooks = new Webhooks(cryptoProvider);
17-
export const actions = new Actions(cryptoProvider);
18-
1910
// Re-export types for convenience
2011
export type {
2112
AuthorizationURLOptions as UserManagementAuthorizationURLOptions,
@@ -26,4 +17,3 @@ export type { SSOAuthorizationURLOptions } from './client/sso';
2617

2718
// Note: If you need authenticateWithCodeAndVerifier, use the full WorkOS SDK
2819
// as it requires server-side API key authentication
29-

0 commit comments

Comments
 (0)