       currentUser.authenticationToken = response.auth_token
       saveCurrentUser()
 
-      $timeout (( ) -> updateAuth "#{DoubtfireConstants.API_URL}/auth/#{currentUser.authenticationToken}.json"), 1000*60*60
+      $timeout (( ) -> updateAuth "#{DoubtfireConstants.API_URL}/auth"), 1000*60*60
     )
 
   # Private factory methods.

    if delayTime < 100
      delayTime = 100

    $timeout (( ) -> updateAuth "#{DoubtfireConstants.API_URL}/auth/#{currentUser.authenticationToken}.json"), delayTime

  # Return the auth object
  auth

        role: response.user.system_role
        profile: response.user

      $timeout (( ) -> updateAuth "#{DoubtfireConstants.API_URL}/auth"), 1000*60*60

      if tryChangeUser user
        success()
