Browse Source

fix(go): return unauthorized on token expiry;

Vishal Dalwadi 5 months ago
parent
commit
d9a6df80a9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      logic/security.go

+ 1 - 1
logic/security.go

@@ -89,7 +89,7 @@ func PreAuthCheck(next http.Handler) http.HandlerFunc {
 			return jwtSecretKey, nil
 		})
 		if err != nil {
-			ReturnErrorResponse(w, r, FormatError(err, "unauthorized"))
+			ReturnErrorResponse(w, r, FormatError(Unauthorized_Err, "unauthorized"))
 			return
 		}