Is it possible to redirect after connecting social media accounts to directly server?

I have set up a web3auth to log in and connect the user's account to his/her social media accounts. However, after permissions are given to let's say Twitter account, the redirect happens to the website. I wonder if It is possible to redirect to an API.

Thanks in advance.

Originally posted by: kihlaj

Check the discussion at: