Skip to content

Commit ac571fa

Browse files
eestgopherbot
authored andcommitted
oauth2: fix docs for Config.DeviceAuth
Config.DeviceAccess should be Config.DeviceAuth when using GenerateVerifier() or S256ChallengeOption() Change-Id: Ie21a808387f731d270ae54ea1705de3e786cad7f GitHub-Last-Rev: 2d6b4fd GitHub-Pull-Request: #763 Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/636216 Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: Cherry Mui <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Auto-Submit: Jorropo <[email protected]> Reviewed-by: Jorropo <[email protected]>
1 parent 314ee5b commit ac571fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkce.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const (
2121
//
2222
// A fresh verifier should be generated for each authorization.
2323
// S256ChallengeOption(verifier) should then be passed to Config.AuthCodeURL
24-
// (or Config.DeviceAccess) and VerifierOption(verifier) to Config.Exchange
24+
// (or Config.DeviceAuth) and VerifierOption(verifier) to Config.Exchange
2525
// (or Config.DeviceAccessToken).
2626
func GenerateVerifier() string {
2727
// "RECOMMENDED that the output of a suitable random number generator be
@@ -51,7 +51,7 @@ func S256ChallengeFromVerifier(verifier string) string {
5151
}
5252

5353
// S256ChallengeOption derives a PKCE code challenge derived from verifier with
54-
// method S256. It should be passed to Config.AuthCodeURL or Config.DeviceAccess
54+
// method S256. It should be passed to Config.AuthCodeURL or Config.DeviceAuth
5555
// only.
5656
func S256ChallengeOption(verifier string) AuthCodeOption {
5757
return challengeOption{

0 commit comments

Comments
 (0)