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
@@ -246,5 +264,16 @@ Create a file named `.lcconfig` in your home directory.
246
264
247
265
{
248
266
"LANG": "java",
249
-
"USE_COLOR": true
267
+
"USE_COLOR": true,
268
+
"AUTO_LOGIN": false
250
269
}
270
+
271
+
### Auto login
272
+
273
+
Leetcode.com is restricting one session only in the same time, which means if you have login same account otherwhere, the existing login session will be expired immediately. This will greatly harm your experience since you have to re-login again and again among different sessions.
274
+
275
+
However leetcode-cli will help some one this.It will try to save you from this trial and re-login transparently without interrupting your current work whenever it notices the session is already expired. To enable this in your config:
276
+
277
+
"AUTO_LOGIN": true
278
+
279
+
**NOTE: if enabled, your PASSWORD will be persisted locally to achieve auto login, so PLEASE be careful to ONLY enable this on your OWN computer for the sake of security!**
0 commit comments