MCPcopy Index your code
hub / github.com/PatchMon/PatchMon / generateState

Function generateState

server-source-code/internal/handler/oidc.go:663–669  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

661}
662
663func generateState() string {
664 b := make([]byte, 32)
665 if _, err := rand.Read(b); err != nil {
666 return uuid.New().String()
667 }
668 return base64.RawURLEncoding.EncodeToString(b)
669}
670
671func strPtr(s string) *string {
672 if s == "" {

Callers 1

LoginMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected