@psa('social:complete')
def register_by_access_token(request, backend):
    third_party_token = request.GET.get('access_token')
user = request.backend.do_auth(third_party_token)
if user:
    login(request, user)
app = Application.objects.get(name='myapp')
try:
    old = AccessToken.objects.get(user=user, application=app)
except:
    pass
else:
    pass
How can I use Django OAuth Toolkit with Python Social Auth?