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

Method refreshToken

backend/plugin/webhook/wecom/app.go:115–122  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

113}
114
115func (p *provider) refreshToken(ctx context.Context) error {
116 token, err := getTokenCached(ctx, p.c, p.corpID, p.secret)
117 if err != nil {
118 return errors.Wrapf(err, "failed to get token")
119 }
120 p.token = token
121 return nil
122}
123
124func (p *provider) getUserIDByEmail(ctx context.Context, email string) (id string, rerr error) {
125 if id, ok := userIDCache.Get(email); ok {

Callers 1

doMethod · 0.95

Calls 1

getTokenCachedFunction · 0.70

Tested by

no test coverage detected