• epyon22@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    7
    ·
    1 month ago

    Remember when writing a client side JavaScript application all that code is transferred to the client machine and executed. Don’t put any sensitive code or strings in that code.

    • folekaule@lemmy.world
      link
      fedilink
      English
      arrow-up
      5
      ·
      1 month ago

      Yep. Use free tools like gitguardian, gitleaks, etc. and run them in pre-commit hooks. Makes it a lot easier to catch.

      And if you leak one by accident, change it immediately. There are bots trolling sites and repos for this information.