Device code grant flow #5169
Replies: 3 comments 2 replies
-
One benefit of the re-auths is we can augment the scopes on the token (as twitch releases new APIs we want to use) If we switched to device flow, we would also have to start tracking which scopes are required for the installed c2 version (and compare with the scopes on the stored token) |
Beta Was this translation helpful? Give feedback.
-
Currently a bit complex to implement since the lifetime of the access-token is short, but it's probably where we want to move at some point |
Beta Was this translation helpful? Give feedback.
-
I made a super basic implementation during the beta and rebased it now: https://github.com/Nerixyz/chatterino2/tree/experiment/device-auth. [Correctly] refreshing the token is probably the hardest task here (e.g. make sure the token is refreshed before we connect to IRC/PubSub/EventSub). firefox_2024-02-11_12-24-45.mp4 |
Beta Was this translation helpful? Give feedback.
-
Implement device code grant flow in chatterino so refresh tokens can be used in the client, no longer needing users to re-auth every x days due to the current use of implicit grant flow
Beta Was this translation helpful? Give feedback.
All reactions