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

Method refreshBotToken

backend/plugin/webhook/teams/app.go:164–171  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

162}
163
164func (p *provider) refreshBotToken(ctx context.Context) error {
165 token, err := getTokenCached(ctx, p.c, p.tenantID, p.clientID, p.clientSecret, botScope)
166 if err != nil {
167 return err
168 }
169 p.botToken = token
170 return nil
171}
172
173// userResponse is the response from Microsoft Graph API for user lookup.
174type userResponse struct {

Callers 2

doBotRequestMethod · 0.95

Calls 1

getTokenCachedFunction · 0.70

Tested by

no test coverage detected