2👍
✅
Try using pipelines in python-social-auth.
Create a custom pipeline by creating pipeline.py file and add your functions here.
A simple example of functions can be found here
Source:stackexchange.com