Ionic social media OAuth with server side accounts

All the tutorials explain how to use $cordovaOauth, get an access_token and a full User in your app.

But, I don’t understand how can you get the user data in your mobile app and sync it with a server side API account in a secure way.

Do you need to implement a custom behavior with a server side redirection from OAuth authorization page and then redirect to the mobile app (like $cordovaOauth does with http://localhost/callback) ?

Or, are there other ways to achieve an OAuth connection in Ionic and have all the data in a server side API ?