Skip to content

Commit 33c10f5

Browse files
committed
Add "invalid oauth token" to refresh token check in HTTP
1 parent 54e32c7 commit 33c10f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

twitchio/authentication/tokens.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ async def request(self, route: Route) -> RawResponse | str | None:
186186
if not old or e.status != 401:
187187
raise e
188188

189-
if e.extra.get("message", "").lower() != "invalid access token":
189+
if e.extra.get("message", "").lower() not in ("invalid access token", "invalid oauth token"):
190190
raise e
191191

192192
if isinstance(old, str):

0 commit comments

Comments
 (0)