| 63 | } |
| 64 | |
| 65 | type handler struct { |
| 66 | client redis.Cmdable |
| 67 | signingMethod jwt.SigningMethod |
| 68 | jwtExpiration time.Duration |
| 69 | rcExpiration time.Duration |
| 70 | key1 []byte |
| 71 | key2 []byte |
| 72 | issuer string |
| 73 | } |
| 74 | |
| 75 | func NewJWTHandler(c redis.Cmdable) Handler { |
| 76 | key1 := viper.GetString("jwt.auth_key") |