fixed token authentication generation
Merge pull request #132 from smcgregor/master

fixed token authentication generation