Token generator made injectable.