rie9502
08/01/2025, 4:35 PMconnectedAccounts.initiate.
I get that calling initiate creates a connected account immediately - that makes sense so we can check connection status while the user is mid-OAuth.
That said, I’m running into a bit of a DX issue:
If the user drops off after I redirect them to the redirectUrl, and I later try to call initiate again, I get an error that the user already has a connected account. But at that point, I can’t recover the redirectUrl unless I’d saved it myself somewhere which adds extra complexity on my end.
Would be super helpful if:
initiate were idempotent (e.g. returned the existing connection + redirectUrl if one’s already in progress), or
there was a way to retrieve the redirectUrl from the existing connection if it hasn’t completed yet.
Is there a recommended pattern for handling dropoffs gracefully? thanksComposio Support Agent
08/01/2025, 6:23 PMrie9502
08/01/2025, 6:45 PMComposio Support Agent
08/01/2025, 6:46 PMrie9502
08/01/2025, 7:01 PM