Social login in app


this might be cordova related question, but anyways posting here to see if any one already solved this problem.
So, my web application already has a URL that triggers social login (such as google or facebook).

In my IONIC cordova app, I want to reuse those functionality but then once social login worked, and created session cookie, then I want the web page to return back to the cordova app. Is this possible?

So, from my research, calling an external link to web page will be opened inside the cordova app and that is find and that is what i want. But, after some process, my web app needs to return back to the cordova app (or simply close the current page loaded inside cordova app, once user has logged in).

Is there a way for web app to call back to the cordova app? Or am I doing something in a weird way?