token = {'access_token': access_token.token, 'token_type': 'Bearer',
    'expires_in': expire_seconds, 'refresh_token': refresh_token.token,
    'scope': scopes}
return Response(token, status=200)
How to generate an AccessToken programatically in Django?