Check value of md4rd variables before login

This commit is contained in:
Niten 2021-05-03 10:53:39 -07:00
parent b3df4f587c
commit 42f747cdf2
1 changed files with 4 additions and 1 deletions

View File

@ -43,7 +43,10 @@
(defun consider-refresh-md4rd-login ()
(when (and (boundp 'md4rd--oauth-client-id)
(boundp 'md4rd--oauth-access-token)
(boundp 'md4rd--oauth-refresh-token))
(boundp 'md4rd--oauth-refresh-token)
(not (string= "" md4rd--oauth-client-id))
(not (string= "" md4rd--oauth-access-token))
(not (string= "" md4rd--oauth-refresh-token)))
(md4rd-refresh-login)))
(run-with-timer 0 3540 'consider-refresh-md4rd-login)