MCPcopy Index your code
hub / github.com/tinyauthapp/tinyauth / hashAndEncodePKCE

Method hashAndEncodePKCE

internal/service/oidc_service.go:764–768  ·  view source on GitHub ↗
(codeVerifier string)

Source from the content-addressed store, hash-verified

762}
763
764func (service *OIDCService) hashAndEncodePKCE(codeVerifier string) string {
765 hasher := sha256.New()
766 hasher.Write([]byte(codeVerifier))
767 return base64.RawURLEncoding.EncodeToString(hasher.Sum(nil))
768}

Callers 2

StoreCodeMethod · 0.95
ValidatePKCEMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected