From 7be2937c84c7b9e260498268c210fd6f4bebf2a3 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Sun, 29 Jan 2023 21:50:13 +0530 Subject: Bug Fix: /auth/refresh returns error no matter what --- auth/refresh.go | 1 + 1 file changed, 1 insertion(+) (limited to 'auth/refresh.go') diff --git a/auth/refresh.go b/auth/refresh.go index 6a77a78..5b1a7df 100644 --- a/auth/refresh.go +++ b/auth/refresh.go @@ -66,6 +66,7 @@ func verifyRefreshToken() gin.HandlerFunc { if i.Token == refreshToken { ctx.Set("user", u) ctx.Next() + return } } ctx.AbortWithStatusJSON(http.StatusUnauthorized, gin.H{"message": "refresh token expired"}) -- cgit v1.2.3