PricingDocsAcademy
Bluesky ...
Wed, Dec 11, 10:37 PM

Having two path params with the same name in session storage

  • needtheanswers

    1 month ago

    Hi,
    I use path params with the name ABC on one page of my application. I save the path param in my session storage. Can I also use a path param with the name ABC on another page of my application or would this cause any problems?

    Thanks 🙂
  • Lucas G

    1 month ago

    You never want to use the same name for different things anywhere, that will lead to mixups and overwrites
  • That includes session storage
  • needtheanswers

    1 month ago

    Ok, thanks Lucas. 🙏 I´m gonna change that right away then
  • Lucas G

    1 month ago

    If you are prefixing them then it should be fine.
    page1abc
    page2abc
    👍1
  • local and session storage is the same for the whole site
  • You can see what's currently being stored by opening up console on any site
  • Since it can be easily accessed, be sure to not store anything important/sensitive there
  • needtheanswers

    1 month ago

    That makes sense. Thank you for the clarification. And sure, I won´t.
    👍1
  • A bit off topic but any idea when V2 is gonna be available or is there another solution that allows us to hide our API endpoints?
  • Lucas G

    1 month ago

    v2 won't hide endpoints
  • needtheanswers

    1 month ago

    Oh really, I must have misunderstood something then
  • Lucas G

    1 month ago

    Any calls with sensitive info (like API keys) should be made from a backend
  • needtheanswers

    1 month ago

    Definitely but the endpoints are still visible in the console
  • Lucas G

    1 month ago

    What is your concern?
  • Endpoints being visible shouldn’t be an issue
  • needtheanswers

    1 month ago

    Just people abusing data since some of my endpoints do not require authorization..
  • Lucas G

    1 month ago

    Ah I see. Yeah we should always make sure all public endpoints are secure
  • needtheanswers

    1 month ago

    Definitely 💯

Stop scrolling. Start building.

toddle is a visual web app builder that rivals custom code — but accessible to your entire team!

Try toddle — it's free!

© Copyright 2024 toddle. All rights reserved.