Commit 9ecc4b717bdddbc06c28d632576116dd0c8023d6

Authored by seandong
1 parent 77418b9b
Exists in master

CHG: dingtalk corp token expiration

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/dingtalk/api/base.rb
... ... @@ -30,7 +30,7 @@ module Dingtalk
30 30 res = http_get("gettoken?corpid=#{@corp.corp_id}&corpsecret=#{@corp.corp_secret}")
31 31 key = "#{@corp.corp_id}_#{ACCESS_TOKEN}"
32 32 redis.set(key, res['access_token'])
33   - redis.expire(key, 6600)
  33 + redis.expire(key, 60)
34 34 redis.get(key)
35 35 end
36 36  
... ...