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

Method getCode

auth.go:428–433  ·  view source on GitHub ↗

getCode gets the verification code

(codeVerifier string, method CodeChallengeMethod)

Source from the content-addressed store, hash-verified

426
427// getCode gets the verification code
428func (c *PKCEOAuthClient) getCode(codeVerifier string, method CodeChallengeMethod) (string, error) {
429 if method == CodeChallengeMethodPlain {
430 return codeVerifier, nil
431 }
432 return genS256CodeChallenge(codeVerifier)
433}
434
435type GetPKCEAccessTokenReq struct {
436 Code, RedirectURI, CodeVerifier string

Callers 1

GetOAuthURLMethod · 0.95

Calls 1

genS256CodeChallengeFunction · 0.85

Tested by

no test coverage detected