Skip to content

Commit 7c19716

Browse files
committed
Fix the client opts in the browser
Both `externalUserId` and `tokenCallback` are mandatory fields when initializing the client in the browser. The SDK currently throws a runtime error when they are not provided, so the type definition of the client opts should reflect this requirement.
1 parent cbb929d commit 7c19716

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/sdk",
3-
"version": "2.0.1",
3+
"version": "2.0.2",
44
"private": false,
55
"repository": "github:PipedreamHQ/pipedream-sdk-typescript",
66
"type": "commonjs",

src/browser/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ export type PipedreamClientOpts = Omit<BackendClientOpts, "clientId" | "clientSe
3333
* The callback function should return the response from
3434
* `serverClient.tokens.create`.
3535
*/
36-
tokenCallback?: TokenCallback;
36+
tokenCallback: TokenCallback;
3737

3838
/**
3939
* An external user ID associated with the token.
4040
*/
41-
externalUserId?: string;
41+
externalUserId: string;
4242
};
4343

4444
/**

0 commit comments

Comments
 (0)