OPSkins / trade-opskins-api

API docs for trade.opskins.com
41 stars 19 forks source link

2FA Codes Cannot be Reused for Multiple Trades #37

Closed memiamp closed 6 years ago

memiamp commented 6 years ago

My software is automating the sending of trades on WAX ExpressTrade.

I have an issue with 2FA codes expiring. I am generating codes correctly - the issue is not with the 2FA code generation.

If I attempt to send more than one trade using the same 2FA code, I receive the following error from the API: "Two-factor code already used."

However, it is quite plausible that the software will send more than one trade within the 30-second window of the next 2FA code being generated.

This will need to be resolved for anyone who want to use the platform for automated sending of trades.

TIA, M

Voyager-Two commented 6 years ago

There is an account option to allow 2FA code reuse

https://github.com/OPSkins/trade-opskins-api/blob/master/IUser/UpdateProfile.md

Or can be updated on the website as well: https://trade.opskins.com/settings

memiamp commented 6 years ago

Thank you for the response.

I apologise, I had overlooked the significance of this setting. I have applied it both progammatically via the API and through the portal. Multiple uses of the code to work.

Thank you