()
| 16 | const defaultSecretKey = "sercrethatmaycontainch@r$32chars" |
| 17 | |
| 18 | func 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. |
| 28 | type UserClaims struct { |