Hi
Did you solved it in other way than codding it from scratch? I have the same issue and I am looking for a solution which will not consume more time to develop it.
The idea is the following:
- The client app will handle the user authorization requests for 3rd party oauth2 providers.
- once the client app gets the auth token from oauth2 3rd party provider, it will send to the server api.
- server api will connect to the oauth2 3rd party provider to exchange the auth token for a bearer token and get the user details.
- with the user data received, the authentication mechanism on api can continue based on the email address and will return a new bearer token or jwt token to the client app. this token will be used fwd to communicate with the api.
hope it helps