MCPcopy
hub / github.com/tinyauthapp/tinyauth / GenerateString

Function GenerateString

internal/utils/security_utils.go:110–114  ·  view source on GitHub ↗
(length int)

Source from the content-addressed store, hash-verified

108}
109
110func GenerateString(length int) string {
111 src := make([]byte, length)
112 rand.Read(src)
113 return base64.RawURLEncoding.EncodeToString(src)[:length]
114}

Callers 4

AuthorizeMethod · 0.92
GenerateAccessTokenMethod · 0.92
RefreshAccessTokenMethod · 0.92
createOidcClientCmdFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected