summaryrefslogtreecommitdiff
path: root/auth
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.xyz>2023-01-29 21:50:13 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.xyz>2023-01-29 21:50:13 +0530
commit7be2937c84c7b9e260498268c210fd6f4bebf2a3 (patch)
tree3b3b9d98a3821abe6ac623be6f15d702345db60f /auth
parentbbc25e292b2561ea38c4ae47bcf379a340980705 (diff)
Bug Fix: /auth/refresh returns error no matter what
Diffstat (limited to 'auth')
-rw-r--r--auth/refresh.go1
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"})