Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle expired Bungie tokens better from DIM Sync #10812

Merged
merged 1 commit into from
Nov 27, 2024
Merged

Conversation

bhollis
Copy link
Contributor

@bhollis bhollis commented Nov 25, 2024

I noticed that if your Bungie.net token is expired and you open DIM, we show a login page but also a notification and a red banner complaining about DIM Sync failing to load. This isn't useful - of course it can't load.

What happens is when DIM Sync goes to get the bungie token, and the token is expired or otherwise missing, getToken throws a FatalTokenError which basically means "you have to log in". We were still saving this into the profileLoadedError. This change just stops setting profileLoadedError and gives up - when we log in we'll get a chance to try again.

@bhollis bhollis merged commit a19bffd into master Nov 27, 2024
7 checks passed
@bhollis bhollis deleted the dim-sync-tokens branch November 27, 2024 03:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant