Skip to content

Commit

Permalink
fix: Update auth middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
sirateek committed Apr 23, 2023
1 parent 9c47a67 commit 615404d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions httpserver/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ func AuthModelMapping() gin.HandlerFunc {
}
tokenStr := splittedKey[1]

logrus.Info("Token Str: ", tokenStr)

token, err := jwt.Parse(tokenStr, nil)
if token == nil || err != nil {
logrus.Warn("Can't parse jwt")
Expand Down

0 comments on commit 615404d

Please sign in to comment.