This topic was automatically generated from Slack. You can find the original thread here.
Another issue. When auth is success the popup window is not closed. And when I click continue it also does not close. How to make it close?
This topic was automatically generated from Slack. You can find the original thread here.
Another issue. When auth is success the popup window is not closed. And when I click continue it also does not close. How to make it close?
Have you seen this section in the docs? GitHub
You can define a success_redirect_uri
and error_redirect_uri
for Connect Link
When I provive the success url it just opens in this popup. Instead we wanted to close the popup at all
The expected behavior is that when you click Continue
, the popup should close and you should be redirected to the success_redirect_uri
. Is that what’s happening, or are you seeing different behavior?
If I do not set any success_redirect_url → Continue button does nothing.
If I set success_redirect_url → On click of continue button, in the popup the link opens.
desired behavior is if success_redirect_url is not set → Continue button just to close the popup, and that variable is set → then close and open this link probably
want to hear your thoughts)
desired behavior is if success_redirect_url is not set → Continue button just to close the popup
What would you see in this case? Since you’re in an entirely different tab, there is nothing to show when the popup is dismissed
On click of continue button, in the popup the link opens
Can you show me a screen recording of what you’re seeing? And what browser are you using?
Actually it looks like we are redirecting to the success_redirect_uri
immediately upon successful auth. Here’s what I’m seeing: Dropbox Capture
here is what I mean. It works for you because you open pipedream in a separate tab. But we use it as a popup window.
So when I provide success_url → it opens in that popup.
Instead we need that popup to close and redirect in our actual app
.
To be even more honest - we do not need any success redirect now. We only need the popup to close on click of “Continue”
Thank you for you time and help this is very helpful
Ah I see, thanks for clarifying. Are you using the frontend SDK there? Check out this section of the quickstart in the docs
You probably don’t want to use Connect Link, since the point of Connect Link is to open it in a separate tab when you aren’t able to go through the auth flow directly from your frontend, but it looks like that’s exactly what you want to do
Ah, this makes sence, thank you
If you clone and run the example nextjs app that might help clarify as well: https://github.com/PipedreamHQ/pipedream-connect-examples/tree/master/managed-auth-basic-next-app
Thanks, appreciate it!