MCPcopy Create free account
hub / github.com/coze-dev/coze-go / withCodeChallengeMethod

Function withCodeChallengeMethod

auth.go:475–479  ·  view source on GitHub ↗

withCodeChallengeMethod adds code_challenge_method parameter

(method string)

Source from the content-addressed store, hash-verified

473
474// withCodeChallengeMethod adds code_challenge_method parameter
475func withCodeChallengeMethod(method string) urlOption {
476 return func(v *url.Values) {
477 v.Set("code_challenge_method", method)
478 }
479}
480
481// DeviceOAuthClient represents the device OAuth core
482type DeviceOAuthClient struct {

Callers 1

GetOAuthURLMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected