From 324202a50e440cac36a756d6a2628ebadd2f8d70 Mon Sep 17 00:00:00 2001 From: Jeroen Wijenbergh Date: Mon, 21 Mar 2022 17:16:28 +0100 Subject: Update python and add basic config support --- src/oauth.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/oauth.go') diff --git a/src/oauth.go b/src/oauth.go index 063034b..eb93c00 100644 --- a/src/oauth.go +++ b/src/oauth.go @@ -54,9 +54,9 @@ func genVerifier() (string, error) { } type OAuth struct { - Session *OAuthExchangeSession - Token *OAuthToken - TokenURL string + Session *OAuthExchangeSession `json:"-"` + Token *OAuthToken `json:"token"` + TokenURL string `json:"token_url"` } // This structure gets passed to the callback for easy access to the current state @@ -85,7 +85,7 @@ type OAuthToken struct { Refresh string `json:"refresh_token"` Type string `json:"token_type"` Expires int64 `json:"expires_in"` - ExpiredTimestamp int64 + ExpiredTimestamp int64 `json:"expires_in_timestamp"` } // Gets an authenticated HTTP client by obtaining refresh and access tokens -- cgit v1.2.3