Skip to content

Commit 86f3388

Browse files
committed
fix: change getCredentialsTokenEndpoint to private
1 parent 794adbd commit 86f3388

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/clients/key_flow.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ func (c *KeyFlow) GetToken() TokenResponseBody {
118118
return *c.token
119119
}
120120

121-
// GetCredentialsTokenEndpoint returns the token endpoint from credentials or a default fallback
122-
func (cfg *KeyFlowConfig) GetCredentialsTokenEndpoint() string {
121+
// getCredentialsTokenEndpoint returns the token endpoint from credentials or a default fallback
122+
func (cfg *KeyFlowConfig) getCredentialsTokenEndpoint() string {
123123
if cfg.ServiceAccountKey == nil || cfg.ServiceAccountKey.Credentials == nil {
124124
return tokenAPI
125125
}
@@ -137,7 +137,7 @@ func (c *KeyFlow) Init(cfg *KeyFlowConfig) error {
137137
c.config = cfg
138138

139139
if c.config.TokenUrl == "" {
140-
c.config.TokenUrl = c.config.GetCredentialsTokenEndpoint()
140+
c.config.TokenUrl = c.config.getCredentialsTokenEndpoint()
141141
}
142142

143143
c.tokenExpirationLeeway = defaultTokenExpirationLeeway

0 commit comments

Comments
 (0)