Skip to content

Commit 6e67783

Browse files
committed
update types for hosted link
1 parent db59016 commit 6e67783

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

packages/sdk/src/server/index.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,16 @@ export type ConnectTokenCreateOpts = {
4646
* An external user ID associated with the token.
4747
*/
4848
external_user_id: string;
49+
50+
/**
51+
* The optional url to redirect the user to upon successful connection.
52+
*/
53+
success_redirect_uri?: string;
54+
55+
/**
56+
* The optional url to redirect the user to upon failed connection.
57+
*/
58+
error_redirect_uri?: string;
4959
};
5060

5161
export type AppInfo = {
@@ -83,6 +93,10 @@ export type ConnectTokenResponse = {
8393
* The expiration time of the token in ISO 8601 format.
8494
*/
8595
expires_at: string;
96+
/**
97+
* The Hosted Link URL
98+
*/
99+
connect_link_url: string;
86100
};
87101

88102
/**

0 commit comments

Comments
 (0)