From 615404d2f508c7f757842ca01071695d90c902a3 Mon Sep 17 00:00:00 2001 From: Siratee K Date: Sun, 23 Apr 2023 22:42:22 +0700 Subject: [PATCH] fix: Update auth middleware --- httpserver/auth.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/httpserver/auth.go b/httpserver/auth.go index 3e9ecb9..9cbd137 100644 --- a/httpserver/auth.go +++ b/httpserver/auth.go @@ -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")