I have already seen this official documentation of django-allauth. Imagine that I am using djangorestframework for implementing registration based
django-allauth
djangorestframework