Social login flow with Django backend and ionic frontend
Clash Royale CLAN TAG #URR8PPP Social login flow with Django backend and ionic frontend I am trying to integrate social login with my ionic app, which is consuming data from a DRF server. The idea is that an user can login through fb, do some magic, the data will be sent back to the django server, and next time they log in they can retrieve their personal data again. So far I'm using native Cordova Fb plugin on ionic and I have managed to successfully log in with it. The problem now is I'm lost on what to do in the next step or the flow of the entire process. How do I register an user from Facebook to my django server so that the next time the user login I can retrieve the data from that respective user correctly? Let's say after I login with FB, I got an access token, do I pass that token back to django to register the new user and if so what tool should I use? For authentication I plan to have Django passing JWT back to the ionic app, but the part in the middle is where I...