Hello there.
I have been building apps and scripts with node for about 3 years, coupled with Express
As your description stated, you want a script that validates a code entered by another user and the code should expire after validation. I can do what you require well and I look forward to working with you.
Thanks and feel free to contact me.