krazkidd / kdeck

Desktop client for Kalshi event trading platform
GNU General Public License v3.0
1 stars 0 forks source link

Consider using DBus to store auth token #13

Open krazkidd opened 3 weeks ago

krazkidd commented 3 weeks ago

The GNOME Keyring devs designed a generic Secret Service API. We could potentially use this to store the user's auth token between sessions.

We should research what the best practices are with regard to storing auth secrets. This will also require build changes since this is specific to Linux.

krazkidd commented 5 days ago

This is a "nice to have" because it will add considerable complexity for a single secret. It's conceivable we would amend this to persistently store the user's password between sessions and not their current session login token because constantly retrieving the token wouldn't enhance security and may add latency to API interactions.