MCPcopy Index your code
hub / github.com/coder/coder / TokenSource

Method TokenSource

coderd/oauthpki/oidcpki.go:158–164  ·  view source on GitHub ↗
(ctx context.Context, token *oauth2.Token)

Source from the content-addressed store, hash-verified

156}
157
158func (ja *Config) TokenSource(ctx context.Context, token *oauth2.Token) oauth2.TokenSource {
159 return oauth2.ReuseTokenSource(token, &jwtTokenSource{
160 cfg: ja,
161 ctx: ctx,
162 refreshToken: token.RefreshToken,
163 })
164}
165
166type jwtTokenSource struct {
167 cfg *Config

Callers 4

RefreshOAuth2TokenFunction · 0.95
refreshTokenWithRetryMethod · 0.95

Calls

no outgoing calls