Update token auth view. Closes #2151.
Removed unused import
Merge pull request #2153 from maryokhin/patch-1

Update token auth view. Closes #2151.