I tried to pass PIN code as an argument when transitioning to 'initialized' state, but apparently this is not supported by machina.js.
ifandelse/machina.js#78
I had to persist it in quipu object instead.
The correct solution could be to use BehaviouralFSM, but i didn't have much time to investigate.