MCPcopy Index your code
hub / github.com/coder/coder / generateSecret

Function generateSecret

coderd/jwtutils/jwt_test.go:352–359  ·  view source on GitHub ↗
(t *testing.T, keySize int)

Source from the content-addressed store, hash-verified

350}
351
352func generateSecret(t *testing.T, keySize int) []byte {
353 t.Helper()
354
355 b := make([]byte, keySize)
356 _, err := rand.Read(b)
357 require.NoError(t, err)
358 return b
359}
360
361type testClaims struct {
362 MyClaim string `json:"my_claim"`

Callers 1

newKeyFunction · 0.70

Calls 2

HelperMethod · 0.65
ReadMethod · 0.65

Tested by

no test coverage detected