XtremeOwnage / WarBot

Warbot is a discord bot designed for the hustle-castle mobile phone game.
GNU General Public License v3.0
5 stars 2 forks source link

Stale cookie detection #75

Closed XtremeOwnageDotCom closed 2 years ago

XtremeOwnageDotCom commented 2 years ago

If a user tries to leverage warbot.dev, but has a stale cookie, the user will receive an error with no indication of what the issue is.

As a stop-gap, add top-level try/catch to catch 401 unauthorized exceptions from discord, and redirect them to the logout page.

XtremeOwnageDotCom commented 2 years ago

Added a top-level exception handler to redirect users to a logout prompt instead... as a temporary patch.

XtremeOwnageDotCom commented 2 years ago

A work around was issued in 4.1.3, which appears to have done the job.... not very elegant, but, is effective.

https://docs.warbot.dev/Changelogs/v4.0/v4.1.3/