Skip to content

Commit

Permalink
Merge pull request #48 from OOrangeeee/online/deploy-debug
Browse files Browse the repository at this point in the history
feat(ci/cd):add (ci/cd)
  • Loading branch information
OOrangeeee authored Oct 14, 2024
2 parents 9687231 + 5da0d8e commit 2605661
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/configs/middlewareConfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ func InitMiddleware(e *echo.Echo) {
}
return false
},
SigningKey: []byte(viper.GetString("jwt.jwtSecret")),
SigningKey: func(c echo.Context) interface{} {
return []byte(viper.GetString("jwt.jwtSecret"))
},
TokenLookup: "header:Authorization:Bearer ",
SuccessHandler: func(c echo.Context) {
user := c.Get("user").(*jwt.Token)
Expand Down

0 comments on commit 2605661

Please sign in to comment.