diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2023-01-29 21:50:13 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2023-01-29 21:50:13 +0530 |
commit | 7be2937c84c7b9e260498268c210fd6f4bebf2a3 (patch) | |
tree | 3b3b9d98a3821abe6ac623be6f15d702345db60f /auth | |
parent | bbc25e292b2561ea38c4ae47bcf379a340980705 (diff) |
Bug Fix: /auth/refresh returns error no matter what
Diffstat (limited to 'auth')
-rw-r--r-- | auth/refresh.go | 1 |
1 files changed, 1 insertions, 0 deletions
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"}) |