Skip to content

Commit 2d34e30

Browse files
masonelmoregopherbot
authored andcommitted
oauth2: replace a magic number with AuthStyleUnknown
Change-Id: I7e08428b87f141fa6d2932b7d60b3e726a454986 GitHub-Last-Rev: 0aef667 GitHub-Pull-Request: #646 Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/496075 Auto-Submit: Sean Liao <[email protected]> Reviewed-by: Sean Liao <[email protected]> Reviewed-by: David Chase <[email protected]> Reviewed-by: Junyang Shao <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent 696f7b3 commit 2d34e30

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
@@ -216,7 +216,7 @@ func cloneURLValues(v url.Values) url.Values {
216216
}
217217

218218
func RetrieveToken(ctx context.Context, clientID, clientSecret, tokenURL string, v url.Values, authStyle AuthStyle, styleCache *AuthStyleCache) (*Token, error) {
219-
needsAuthStyleProbe := authStyle == 0
219+
needsAuthStyleProbe := authStyle == AuthStyleUnknown
220220
if needsAuthStyleProbe {
221221
if style, ok := styleCache.lookupAuthStyle(tokenURL); ok {
222222
authStyle = style

0 commit comments

Comments
 (0)