Social authentication to springboot backend from apk and web



I’ve built my ionic application to apk, but also host it as a single page application. I’ve created webservices using spring boot and want to use social login to authenticate the client.

I’ve found some examples that use cordova plugins to authenticate the clients, but what about web applications? cordova doesn’t work on the web.

I need some information about sharing authentication provider between apk application and web applications. Or maybe I can use two different methods for both apps.

If you got some experience with such authentication, or maybe you know a tutorial that would help me, please share it.