1
This commit is contained in:
@@ -44,7 +44,7 @@ func New(appKey, appSecret, accessToken string) *API {
|
||||
expiresIn: access.ExpiresIn,
|
||||
accessTokenObj: access,
|
||||
}
|
||||
if access.ExpiresIn > time.Now().Unix() {
|
||||
if access.ExpiresIn < time.Now().Unix() {
|
||||
api.RefreshToken()
|
||||
}
|
||||
return api
|
||||
|
||||
Reference in New Issue
Block a user