diff options
Diffstat (limited to 'internal/oauth/token.go')
| -rw-r--r-- | internal/oauth/token.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/oauth/token.go b/internal/oauth/token.go index bd17647..31c2c74 100644 --- a/internal/oauth/token.go +++ b/internal/oauth/token.go @@ -31,6 +31,6 @@ type Token struct { // Expired checks if the access token is expired. func (tokens *Token) Expired() bool { - currentTime := time.Now() - return !currentTime.Before(tokens.expiredTimestamp) + now := time.Now() + return !now.Before(tokens.expiredTimestamp) } |
