MCPcopy Create free account
hub / github.com/kataras/iris / getSecretKey

Function getSecretKey

_examples/auth/jwt/tutorial/api/auth.go:18–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16const defaultSecretKey = "sercrethatmaycontainch@r$32chars"
17
18func getSecretKey() string {
19 secret := os.Getenv(util.AppName + "_SECRET")
20 if secret == "" {
21 return defaultSecretKey
22 }
23
24 return secret
25}
26
27// UserClaims represents the user token claims.
28type UserClaims struct {

Callers 2

VerifyFunction · 0.85
SignInFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…