Integrate OAuth 2 Into Your Django/DRF Back-end | Toptal www.toptal.comwww.toptal.com Python Social Auth does a great job at that. We’ve demonstrated a Django/DRF view that utilizes the client-side, implicit, OAuth2 flow to get seamless user creation and matching in only 25 lines of code.