FrozenIronSoftware / Twitched

Unofficial Twitch app for the Roku
https://www.twitched.org
Other
29 stars 8 forks source link

Expired Tokens do not cause a log out #15

Closed rolandoislas closed 6 years ago

rolandoislas commented 6 years ago

Description

The app stays logged in with an expired oauth token

Steps to Reproduce

  1. Log in
  2. Revoke or let the token expire
  3. Attempt to load a resource that requires authentication

Expected behavior: The expired token should be handled gracefully.

Actual behavior: The expired token is handled as an API error.

Roku Model: 3710X Express Littlefield

Roku Firmware Version: 8.0.0 build 4128-28

Twitched Version: Twitched v1.3.1908 | Twitched Zero v1.3.2018

Additional Information

N/A

rolandoislas commented 6 years ago

A hotfix has been applied.

TODO: Change from OAuth implicit code flow to OAuth authorization code flow to utilize refresh tokens.

rolandoislas commented 6 years ago

Migrate from OAuth implicit code flow to OAuth authorization code flow