You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to log in to Twitter using the client, the current implementation does not always account for existing cookies, leading to redundant login attempts. This results in unnecessary API calls, which could potentially trigger rate limits or cause inefficient resource usage.
To Reproduce
Run the Twitter login script with valid cookies already present.
Observe that the login function is still executed, even though the user is technically logged in.
Expected behavior
If valid cookies exist and the user is already logged in, the script should skip the login process and proceed directly to caching the cookies or other subsequent steps.
Additional context
Checking for cookies and logged-in status before attempting login.
Introducing a retry mechanism with a limit of 5 attempts to avoid infinite loops.
Logging detailed errors and outcomes for easier debugging.
The text was updated successfully, but these errors were encountered:
Describe the bug
When attempting to log in to Twitter using the client, the current implementation does not always account for existing cookies, leading to redundant login attempts. This results in unnecessary API calls, which could potentially trigger rate limits or cause inefficient resource usage.
To Reproduce
Expected behavior
If valid cookies exist and the user is already logged in, the script should skip the login process and proceed directly to caching the cookies or other subsequent steps.
Additional context
The text was updated successfully, but these errors were encountered: