Commit ba1ff94fa2c86e86473beae8d2698db60e816ea6
Committed by
GitHub
1 parent
2867490f
Exists in
master
Reduce sns access token expiration to 6600s
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/dingtalk/api/sns.rb
... | ... | @@ -16,7 +16,7 @@ module Dingtalk |
16 | 16 | def set_access_token |
17 | 17 | res = http_get("gettoken?appid=#{@app_id}&appsecret=#{@app_secret}") |
18 | 18 | redis.set(ACCESS_TOKEN, res['access_token']) |
19 | - redis.expire(ACCESS_TOKEN, 7200) | |
19 | + redis.expire(ACCESS_TOKEN, 6600) | |
20 | 20 | redis.get(ACCESS_TOKEN) |
21 | 21 | end |
22 | 22 | ... | ... |