No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Electron and Cookies

    Help
    1
    2
    289
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      stuartcusack last edited by stuartcusack

      I’ve no idea if this will ever be useful to me but I just noticed that when I tried to store a Cookie my production-built Electron app would delete the Cookies every time the app was closed.

      Is this normal? Are Cookies supposed to be used with Electron? Maybe I’m better off just sticking to LocalStorage??

      Thanks.

      1 Reply Last reply Reply Quote 0
      • S
        stuartcusack last edited by stuartcusack

        I’ve been doing a lot of research today on LocalStorage and it seems the way to go for Electron. I don’t think Cookies work the same way with Electron.

        By the way, you probably shouldn’t store anything sensitive in LocalStorage, including api tokens. Instead use secure storage packages (untested):

        • Electron: https://github.com/atom/node-keytar

        • Cordova: https://github.com/Crypho/cordova-plugin-secure-storage (no longer maintained)

        For SPAs that utilise APIs I think I need to integrate Implicit Password Grants, instead of Password Grants. SPAs don’t have a secure way to store data.

        1 Reply Last reply Reply Quote 1
        • First post
          Last post