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

Method refreshGraphToken

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

Source from the content-addressed store, hash-verified

153}
154
155func (p *provider) refreshGraphToken(ctx context.Context) error {
156 token, err := getTokenCached(ctx, p.c, p.tenantID, p.clientID, p.clientSecret, graphScope)
157 if err != nil {
158 return err
159 }
160 p.graphToken = token
161 return nil
162}
163
164func (p *provider) refreshBotToken(ctx context.Context) error {
165 token, err := getTokenCached(ctx, p.c, p.tenantID, p.clientID, p.clientSecret, botScope)

Callers 4

getIDByEmailMethod · 0.95
doGraphRequestMethod · 0.95
sendMessageMethod · 0.95
ValidateFunction · 0.80

Calls 1

getTokenCachedFunction · 0.70

Tested by

no test coverage detected