Comments (7)
I see room for improvement here, so I've made the 'Refresh' button log you back in if you are not found to be connected, which will ask you for a password, then reload anyway. Saves you the click you were almost certainly going to make.
I've also added an interlock so if the login process is abandoned, even with cookies remaining, we don't consider that a successful login anymore. You've got to reach login_callback() or it won't count.
But I feel like there's more wanted here, and it's not clear to me. Do we want to preemptively check each source at some point to detect if you have been disconnected? I don't think we want to just poll all the sources all the time.
from lutris.
No polling needed, I would just like services to stop showing "token expired" errors and just show the login window instead.
from lutris.
Hmm. I don't have the ability to really test this very well, but I think we can get closer here.
I've changed Lutris to just use one AuthenticationError class, and to have a backstop that will log out and log in again if such an error hits the backstop. That should help.
There are services that never raise this error. Origin for instance. So maybe we aren't done here.
from lutris.
I don't have the ability to really test
Well that should make you life easier. If you can't test then you can't change.
Origin for instance
Origin can be removed.
from lutris.
I tested this by sabotaging it- deleting credential files while Lutris was running. It's not exactly the same as being expired by the service, but I managed to run the offending code path.
I can just revert it all if you feel that's not good enough. I dunno how you're going to test this, but I'm sure you'll figure something out.
from lutris.
I can test because I have accounts on all services we propose but yes, it is annoying to reproduce.
from lutris.
I'll take that as "revert it all and leave it to you."
from lutris.
Related Issues (20)
- Crash on app launch - Fedora 40 Workstation HOT 4
- [Bug/Error] Could not download/update most runtime components HOT 1
- [DISTROBOX ARCH] Cannot change Lutris language interface HOT 1
- [EA App] empty library and game details HOT 2
- Error: DOS Header magic not found HOT 13
- Lutris not running most games, huge bug wall HOT 2
- Ubisoft Connect keeps loading infinitely HOT 1
- Multi-Launch Config breaks after adding more than 1 additional launch option HOT 1
- [5.17-3] Lutris does not recognize GPU HOT 2
- Using wrong wine version when adding games
- [0.5.17] Lutris potentially downloads new GE-Proton release too soon and corrupts the runner HOT 1
- '%AppData%' returned empty string HOT 6
- org.gnome.Platform version 46 HOT 4
- Games can no longer be launched from steam deck gaming mode HOT 4
- Can't install Escape From Tarkov (EndeavourOS) HOT 3
- "No such file" User.reg (file exists) after upgrading Ubuntu. Help. HOT 6
- Feature: itch.io without an account
- Some itch.io games aren't shown on the library HOT 6
- EGS Source error HOT 6
- Amazon Prime Gaming installs fail with 'Unable to get game manifest info'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lutris.