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
Copy file name to clipboardExpand all lines: docs/wait-for-token.mdx
+36-1Lines changed: 36 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,10 @@ Waitpoint tokens pause task runs until you complete the token. They're commonly
8
8
You can complete a token using the SDK or by making a POST request to the token's URL.
9
9
10
10
<Note>
11
-
If you're waiting for data from an [input stream](/tasks/streams#input-streams), use [`inputStream.wait()`](/tasks/streams#wait--suspend-until-data-arrives) instead — it uses waitpoint tokens internally but provides a simpler API with full type safety from your stream definition.
11
+
If you're waiting for data from an [input stream](/tasks/streams#input-streams), use
12
+
[`inputStream.wait()`](/tasks/streams#wait--suspend-until-data-arrives) instead — it uses
13
+
waitpoint tokens internally but provides a simpler API with full type safety from your stream
The `publicAccessToken` returned by `wait.createToken()` is scoped to that specific waitpoint and intended for client-side completion. The completion endpoint has CORS enabled, so you can call it directly from client-side code without proxying through your backend.
0 commit comments