M
M
Misha Kogan2015-11-02 08:45:28
JavaScript
Misha Kogan, 2015-11-02 08:45:28

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

1 answer(s)
C
Cat Anton, 2015-11-02
@Kogan4ik

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 question

Ask a Question

731 491 924 answers to any question