MCPcopy
hub / github.com/devtron-labs/devtron / randToken

Function randToken

pkg/auth/user/UserAuthService.go:140–147  ·  view source on GitHub ↗

* #nosec */

()

Source from the content-addressed store, hash-verified

138
139/* #nosec */
140func randToken() string {
141 b := make([]byte, 32)
142 _, err := rand.Read(b)
143 if err != nil {
144 util.GetLogger().Error(err)
145 }
146 return base64.StdEncoding.EncodeToString(b)
147}
148
149/* #nosec */
150func randKey() []byte {

Callers 1

UserAuthService.goFile · 0.85

Calls 3

GetLoggerFunction · 0.92
ReadMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…