Skip to content

Commit c9fc373

Browse files
author
Eviee Py
committed
return token resp from add_token
1 parent cfb60ba commit c9fc373

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

twitchio/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ async def predicate(payload: twitchio.ChatMessage) -> bool:
483483

484484
return await waiter.wait()
485485

486-
async def add_token(self, token: str, refresh: str) -> None:
486+
async def add_token(self, token: str, refresh: str) -> ValidateTokenPayload:
487487
"""|coro|
488488
489489
Adds a token and refresh-token pair to the client to be automatically managed.
@@ -526,7 +526,7 @@ async def add_token(self, token: str, refresh: str) -> None:
526526
await super().add_token(token, refresh)
527527
528528
"""
529-
await self._http.add_token(token, refresh)
529+
return await self._http.add_token(token, refresh)
530530

531531
async def remove_token(self, user_id: str, /) -> TokenMappingData | None:
532532
"""|coro|

0 commit comments

Comments
 (0)