about summary refs log tree commit diff
path: root/users/glittershark
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2020-09-14T15·36-0400
committerglittershark <grfn@gws.fyi>2020-09-14T15·39+0000
commit7a5748cba30a1e0be126a1bf2288c60e04c3f565 (patch)
tree47879ec245d222d2e8d1392e9454a98a7fb48eaa /users/glittershark
parent4a29942b06798bae94fe71fc476088ef284e1b71 (diff)
fix(gs/emacs): Always refresh gcal access token r/1787
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 <grfn@gws.fyi>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/glittershark')
-rw-r--r--users/glittershark/emacs.d/org-gcal.el1
1 files changed, 1 insertions, 0 deletions
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