You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -50,6 +50,7 @@ export default function AccountConnectionDemo() {
50
50
>
51
51
Connect Account
52
52
</button>
53
+
{!tokenData&&<pclassName="mt-2 text-sm text-gray-500"><ahref="/docs/connect/managed-auth/quickstart/#generate-a-short-lived-token"className="font-semibold underline underline-offset-4 hover:decoration-2 decoration-brand/50">Generate a token above</a> in order to test the account connection flow</p>}
53
54
</div>
54
55
55
56
{error&&(
@@ -58,7 +59,7 @@ export default function AccountConnectionDemo() {
Below, we'll walk through the full implementation step by step, with interactive examples you can try.
30
-
31
27
## Getting started
32
28
33
29
<Steps>
@@ -121,53 +117,21 @@ Try the interactive demo below to connect an account after generating a token in
121
117
<AccountConnectionDemo />
122
118
</div>
123
119
124
-
In our example Next.js app, `app/page.tsx` calls the `connectAccount` method from the Pipedream SDK when the user clicks the **Connect your account** button, similar to how our interactive demo above works.
125
-
126
-
<br />
127
-
<Imagesrc="https://res.cloudinary.com/pipedreamin/image/upload/v1733865948/Google_Chrome_-_Pipedream_Connect_Demo_2024-12-10_at_1.23.47_PM_mwxfzh.png"alt="Connect your account button"width={650}height={300} />
Press that button to connect an account for the app you configured.
154
-
155
120
#### Or use Connect Link
156
121
157
-
Use this option when you can't execute JavaScript or open an iFrame in your environment (e.g. mobile apps), or when you want to offload the account connection flow to Pipedream and avoid frontend work. You can also send these links via email or SMS.
122
+
Use this option when you can't execute JavaScript or open an iFrame in your environment (e.g. mobile apps) and instead want to share a URL with your end users.
158
123
159
-
The Connect Link opens a Pipedream-hosted page, guiding users through the account connection process. The URL is specific to the user and expires after 4 hours.
124
+
The Connect Link URL opens a Pipedream-hosted page, guiding users through the account connection process. The URL is specific to the user and expires after 4 hours.
160
125
161
-
1. First, [generate a token](#generate-a-short-lived-token) for your users.
162
-
2. Extract the `connect_link_url` from the token response.
163
-
3. Before returning the URL to your user, add an `app` parameter to the end of the query string:
126
+
1. First, [generate a token](#generate-a-short-lived-token) for your users
127
+
2. Check out the [optional arguments](/connect/api/#create-a-new-token) to define redirect URLs on success or error
128
+
3. Extract the `connect_link_url` from the token response
129
+
4. Before returning the URL to your user, add an `app` parameter to the end of the query string:
0 commit comments