aboutsummaryrefslogtreecommitdiff
path: root/auth/middleware.go
diff options
context:
space:
mode:
Diffstat (limited to 'auth/middleware.go')
-rw-r--r--auth/middleware.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/auth/middleware.go b/auth/middleware.go
index 299a7be..9a065d5 100644
--- a/auth/middleware.go
+++ b/auth/middleware.go
@@ -47,7 +47,7 @@ func Authorize() gin.HandlerFunc {
return
}
- tk, err := jwt.ParseWithClaims(bearerToken, &AuthClaims{}, func (token *jwt.Token) (interface{}, error) {
+ tk, _ := jwt.ParseWithClaims(bearerToken, &AuthClaims{}, func (token *jwt.Token) (interface{}, error) {
return []byte(AUTH_KEY), nil
})