krazkidd / kdeck

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

Handle expired auth token #14

Open krazkidd opened 5 months ago

krazkidd commented 5 months ago

This should be as simple as checking for a 401 Not Authorized code and prompting the user to login.

It may be prudent to refactor LoginPanel to be a dialog that could pop up at any time. This would allow us to fix #8 simply by not using conditional logic to show different panels (and thereby not requiring us to destroy all child components in a login status change).

krazkidd commented 5 months ago

The LoginPanel has been refactored as a dialog. We could fire a unique event for auth failures and let that bubble up to MainFrame for handling.