Fixed api token generation.
Merge pull request #643 from alexkalderimis/hf642

Fixed api token generation.