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