Merge pull request #727 from andig/feature/mcc-refresh-token
Fix token refresh change
This commit is contained in:
commit
bd89791ec4
1 changed files with 2 additions and 2 deletions
|
|
@ -108,8 +108,8 @@ func (mcc *MobileConnect) fetchToken(request *http.Request) error {
|
|||
}
|
||||
|
||||
mcc.token = tr.Token
|
||||
// According to the Web Interface, the token is valid for 10 minutes
|
||||
mcc.tokenValid = time.Now().Add(10 * time.Minute)
|
||||
// According to the Web Interface, the token is valid for 2 minutes
|
||||
mcc.tokenValid = time.Now().Add(2 * time.Minute)
|
||||
|
||||
// the web interface updates the token every 2 minutes, so lets do the same here
|
||||
mcc.tokenRefresh = time.Now().Add(2 * time.Minute)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue