Django-allauth should help to achieve that. See [the documentation](https://docs.allauth.org/en/latest/socialaccount/index.html)