https://linen.dev logo
composio.connectedAccounts.refresh doesn't support...
# 🖥│support-forum
o
Hi, The composio.connectedAccounts.refresh doesn't support the callbackUrl param, so my users are not redirecting back into my app. I also npm installed the latest version of ⁨@User⁩/core, and pass: const connectedAccount = await composio.connectedAccounts.refresh(id, { redirectUrl: backToAppUrl, }); const url = new URL(connectedAccount.redirect_url); redirect(url.toString()); And still it didn't redirect back to my app... For example: composio.connectedAccounts.initiate does supports the callbackUrl param. I saw this commit from 3 weeks ago that added the above redirectUrl param which not redirect me back to my app: https://github.com/ComposioHQ/composio/commit/99e10a99cbcfaff89571bc1365ea18fc436e857c#diff-662ad55bc7d930abfa1be17052850798580acc001f50268c48a032686b5ea39d
a
Hey Or, thanks for flagging this! We'll push a fix for this soon.
o
Thanks @Abhishek
@Abhishek can you please update once the fix is delivered?
b
Yup, will do.
o
Hi @Abhishek is there any update?
u
Hey @Or, this is a bigger change than anticipated, and the team is working on the fix.
o
Great! thanks for the update
u
Hey @Or, we've fixed the issue. Could you try upgrading your SDK package and lmk? Snippet for ref:
Copy code
connectedAccounts.refresh("ca_xxxx",{redirectUrl: "https://www.google.com"})
o
Hi @Uday Great, it solved the bug!