HilliamT / Vapor-Authenticator

Desktop Authenticator for Steam for players, traders and gamers to be able to utilise, facilitate and automate Steam from their desktop
MIT License
31 stars 9 forks source link

fix typescript type inference bug for finaliseTwoFactor and revokeTwo… #5

Closed rchutzz closed 1 year ago

rchutzz commented 1 year ago

change the explicit type for the err parameter in the callback functions of finalizeTwoFactor and revokeTwoFactor as Error | null. This would resolve the TypeScript inference error. fixed the earlier pull request because of accidentally deleting delete _store.accounts[_store.main].secrets;