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 <grfn@gws.fyi> Tested-by: BuildkiteCI
This commit is contained in:
		
							parent
							
								
									4a29942b06
								
							
						
					
					
						commit
						7a5748cba3
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -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 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue