token generator spec