1

How to detect a bad programmer ...

Comments
  • 2
    right, if they're gonna refresh the token automatically, they should do it at least a few seconds *before* the old one expires.
  • 2
    alternatively:
    right, VSCode.
  • 1
    Also, no try/catch around those awaits. A rejected token refresh will just silently throw and leave you logged in
  • 1
    @tosensei smh, this is clearly TypeScript.
  • 1
    @localpost pretty sure you can't specify a return type in JS. So yeah, definitely TS.

    Doesn't make it any less bad 🤷
Add Comment