Skip to content

Commit

Permalink
feat(openapi): apqp list logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Matrix-X committed Sep 12, 2024
1 parent 6f7de86 commit d10d8a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/middleware/webcustomerjwtauthmiddleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (m *WebCustomerJWTAuthMiddleware) Handle(next http.HandlerFunc) http.Handle
token, err := jwt.ParseWithClaims(tokenString, &claims, func(token *jwt.Token) (interface{}, error) {
return []byte(secret), nil
})
fmt.Dump(token, err)

if err != nil || !token.Valid {
if errors.Is(err, jwt.ErrTokenMalformed) {
httpx.Error(writer, unAuth)
Expand Down

0 comments on commit d10d8a0

Please sign in to comment.