MCPcopy Create free account
hub / github.com/bytebase/bytebase / verifySecret

Function verifySecret

backend/api/oauth2/oauth2.go:144–146  ·  view source on GitHub ↗
(hash, secret string)

Source from the content-addressed store, hash-verified

142}
143
144func verifySecret(hash, secret string) bool {
145 return bcrypt.CompareHashAndPassword([]byte(hash), []byte(secret)) == nil
146}
147
148func verifyPKCE(codeVerifier, codeChallenge, method string) bool {
149 if method != "S256" {

Callers 2

handleRevokeMethod · 0.85
handleTokenMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected