set authtokenstate correctly while authenticatin
also handle null auth data case
Merge pull request #68 from box/state

set authtokenstate correctly while authenticatin