Hi, I'm using the React SDK together with a social...
# ask-a-descoper
y
Hi, I'm using the React SDK together with a social login flow to integrate Google login into our app. The flow contains the OAuth block with the "Open popup" option enabled. I noticed that after the sign-in there's a redirect back to our app url (within the popup window). I'm trying to render some loading page when this happens but this seems to block the flow from finishing. what's the suggested way of handling the redirect after a successful sign-in? Does the
Descope
component must be rendered within the popup in order for the flow to complete after a successful sign-in?
CC @Meir Wahnon
m
@Asaf Shen @Reuven Zabirov can you help here ?
d
Right the Descope component must be rendered. So what should be done is that you need to render the Descope component in case redirecting to your app, you can get the popup query param from the url and render the flow.
By the way, why using popup? It is better to use redirect, there are some extensions that might block popup, etc
y
Thanks Doron (long time 🙂 ) It was a requirement from our product, but I'll verify again..
d
Ok, yeah long time :) So basically if they insist on that you will need to catch the url check if the query param is presented and render Descope component first