diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-11-28 14:29:12 +0100 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-11-28 14:29:12 +0100 |
| commit | 0bfb35520d7e138e6219e550187e0b55bc8a29ac (patch) | |
| tree | a087049edae0ff932bc7a14fef323783b26a2ff1 /internal/oauth/token.go | |
| parent | 59e6ccd051452162fab852a25deb4f0f8a9e22b2 (diff) | |
Formatting: Run gofumpt -w
Diffstat (limited to 'internal/oauth/token.go')
| -rw-r--r-- | internal/oauth/token.go | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/internal/oauth/token.go b/internal/oauth/token.go index eb79357..bd17647 100644 --- a/internal/oauth/token.go +++ b/internal/oauth/token.go @@ -5,26 +5,25 @@ import "time" // TokenResponse defines the OAuth response from the server that includes the tokens. type TokenResponse struct { // Access is the access token returned by the server - Access string `json:"access_token"` + Access string `json:"access_token"` // Refresh token is the refresh token returned by the server - Refresh string `json:"refresh_token"` + Refresh string `json:"refresh_token"` // Type indicates which type of tokens we have - Type string `json:"token_type"` + Type string `json:"token_type"` // Expires is the expires time returned by the server - Expires int64 `json:"expires_in"` - + Expires int64 `json:"expires_in"` } // Token is a structure that contains our access and refresh tokens and a timestamp when they expire. type Token struct { // Access is the access token returned by the server - access string + access string // Refresh token is the refresh token returned by the server - refresh string + refresh string // ExpiredTimestamp is the Expires field but converted to a Go timestamp expiredTimestamp time.Time |
