From 7a5748cba30a1e0be126a1bf2288c60e04c3f565 Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Mon, 14 Sep 2020 11:36:50 -0400 Subject: fix(gs/emacs): Always refresh gcal access token the oauth2 emacs lib *claims* it does this for us, but it demonstrably doesn't. Change-Id: I6495ac30799bb3d3fd7406cec5139602c311d22a Reviewed-on: https://cl.tvl.fyi/c/depot/+/1977 Reviewed-by: glittershark Tested-by: BuildkiteCI --- users/glittershark/emacs.d/org-gcal.el | 1 + 1 file changed, 1 insertion(+) (limited to 'users') diff --git a/users/glittershark/emacs.d/org-gcal.el b/users/glittershark/emacs.d/org-gcal.el index 183dfbd5a725..361daaac42f5 100644 --- a/users/glittershark/emacs.d/org-gcal.el +++ b/users/glittershark/emacs.d/org-gcal.el @@ -25,6 +25,7 @@ (cl-defun google--request (url &key method params scope) (let ((p (aio-promise)) (auth-token (google--get-token scope gcal-client-id gcal-client-secret))) + (oauth2-refresh-access auth-token) (oauth2-url-retrieve auth-token url -- cgit 1.4.1