Skip to content

Commit 0aef667

Browse files
committed
oauth2: replace a magic number with AuthStyleUnknown
1 parent 1c06e87 commit 0aef667

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/token.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ func cloneURLValues(v url.Values) url.Values {
209209
}
210210

211211
func RetrieveToken(ctx context.Context, clientID, clientSecret, tokenURL string, v url.Values, authStyle AuthStyle, styleCache *AuthStyleCache) (*Token, error) {
212-
needsAuthStyleProbe := authStyle == 0
212+
needsAuthStyleProbe := authStyle == AuthStyleUnknown
213213
if needsAuthStyleProbe {
214214
if style, ok := styleCache.lookupAuthStyle(tokenURL); ok {
215215
authStyle = style

0 commit comments

Comments
 (0)