From ac78e390c4d84019a226f39d95af5ea86135d54e Mon Sep 17 00:00:00 2001 From: Bulat Kurbanov Date: Tue, 19 Nov 2024 19:59:35 +0100 Subject: [PATCH] Fix --- src/modules/web_app/views/auth.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/web_app/views/auth.py b/src/modules/web_app/views/auth.py index c432b6c..917572e 100644 --- a/src/modules/web_app/views/auth.py +++ b/src/modules/web_app/views/auth.py @@ -13,6 +13,7 @@ auth_router = APIRouter(prefix="/auth", tags=["auth"]) class TwithOAuth2(OAuth2): async def get_id_email(self, token: str): twitch_client = Twitch(config.TWITCH_CLIENT_ID, config.TWITCH_CLIENT_SECRET) + twitch_client.auto_refresh_auth = False await twitch_client.set_user_authentication( token,