MCPcopy Create free account
hub / github.com/bytebase/bytebase / refreshToken

Method refreshToken

backend/plugin/webhook/feishu/app.go:169–176  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

167}
168
169func (p *provider) refreshToken(ctx context.Context) error {
170 token, err := getTokenCached(ctx, p.c, p.id, p.secret)
171 if err != nil {
172 return err
173 }
174 p.token = token
175 return nil
176}
177
178var userIDCache = func() *lru.Cache[string, string] {
179 cache, err := lru.New[string, string](5000)

Callers 2

doMethod · 0.95
ValidateFunction · 0.45

Calls 1

getTokenCachedFunction · 0.70

Tested by

no test coverage detected