title: How to get user info after successful authentication with django-rest-framework-jwt in angularjs
body: <p>I'm working on a project with django and angularjs where I need to use djangorestframework-jwt for authentication. I'm new to djangorestframework-jwt. I use '/api-token-auth/' for login, but I don't get any user information.</p>
  
  <p>My authentication services is:</p>
  
  <pre><code>function login (username, password, callback) {
          return $http.post('/api-token-auth/', {
              username: username, password: password
          }).then(loginSuccessFn(callback), loginErrorFn);
  
          function loginSuccessFn (callback) {
              return function (data, status, headers, config, response) {
                  localStorage.setItem('empee.token',data.data.token);
                  $http.defaults.headers.common['Authorization'] = 'Bearer ' + data.data.token;
                  if (typeof callback !== 'undefined') {
                      callback();
                  }
              }
  
          }
  
          function loginErrorFn (data, status, headers, config) {
              console.error('Epic failure!');
          }
      }
  </code></pre>
  
  <p>Login controller:</p>
  
  <pre><code>function login() {
          Authentication.login(vm.username, vm.password, function() {
              $state.go('dashboard');
          });
      }
  </code></pre>