Code Monkey home page Code Monkey logo

Comments (7)

danieljohnson2 avatar danieljohnson2 commented on June 14, 2024

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.

strycore avatar strycore commented on June 14, 2024

No polling needed, I would just like services to stop showing "token expired" errors and just show the login window instead.

from lutris.

danieljohnson2 avatar danieljohnson2 commented on June 14, 2024

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.

strycore avatar strycore commented on June 14, 2024

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.

danieljohnson2 avatar danieljohnson2 commented on June 14, 2024

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.

strycore avatar strycore commented on June 14, 2024

I can test because I have accounts on all services we propose but yes, it is annoying to reproduce.

from lutris.

danieljohnson2 avatar danieljohnson2 commented on June 14, 2024

I'll take that as "revert it all and leave it to you."

from lutris.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.