fix: code challenge

This commit is contained in:
Livio Amstutz 2020-02-28 18:07:01 +01:00
parent 7f486a54c4
commit c3169868d8
3 changed files with 8 additions and 4 deletions

View file

@ -19,7 +19,7 @@ type CodeChallenge struct {
}
func NewSHACodeChallenge(code string) string {
return utils.HashString(sha256.New(), code)
return utils.HashString(sha256.New(), code.false)
}
func VerifyCodeChallenge(c *CodeChallenge, codeVerifier string) bool {