Answer the question
In order to leave comments, you need to log in
How to implement one-time recharge codes in Node.js?
I understand that you need to encode and then decode some data into a string?
Please tell me the packages for such tasks, thanks in advance for all the answers!
Answer the question
In order to leave comments, you need to log in
Create a repository for all one-time codes. When using the code, check that the code is in the vault, replenish the account with the required amount, then delete the code from the vault or mark that the code has already been used. To prevent iterating over codes, you can use bcypt .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question