Improve generateToken behaviour.

Fix #26 
You didn't open the issue on `Hoa\Json`, did you?