oapi-sdk-go icon indicating copy to clipboard operation
oapi-sdk-go copied to clipboard

Export tokenManager

Open taobig opened this issue 2 years ago • 0 comments

var tokenManager TokenManager = TokenManager{cache: cache} // github.com/larksuite/oapi-sdk-go/[email protected]/core/tokenmanager.go

有时候本程序作为一个服务,需要暴露access token给外部其他程序临时调用,希望能够修改tokenManager为可导出变量,同时将它的 getAppAccessToken()getTenantAccessToken() 两个方法也设置为可导出。另外希望同时也支持导出access token的ttl。

taobig avatar Aug 28 '23 12:08 taobig