From d8c1d5fedfac65a79490120195e273b5d5fc75e9 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Wed, 4 Oct 2023 21:33:42 +0530 Subject: added basic token refreshing --- auth/middleware.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'auth/middleware.go') 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 }) -- cgit v1.2.3