diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2025-10-10 17:58:31 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2025-10-10 17:58:31 +0530 |
commit | a3884ebb05564951164f4c880d573950299ba85e (patch) | |
tree | eec7eb64cc57f40d6b2ef1e67d083a014f1be3ae | |
parent | b0f5cefba592f6bc7166cdd5d83899dc2bbcb355 (diff) |
bug fix where refreshing wasn't workingv0.12.1
-rw-r--r-- | auth/controller.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/auth/controller.go b/auth/controller.go index 05cdd9d..961518a 100644 --- a/auth/controller.go +++ b/auth/controller.go @@ -134,7 +134,7 @@ func handleRefresh (ctx *gin.Context) { var req RefreshReq ctx.Bind(&req) - tk, _ := jwt.ParseWithClaims(req.RefreshToken, &AuthClaims{}, func (token *jwt.Token) (interface{}, error) { + tk, _ := jwt.ParseWithClaims(req.RefreshToken, &RefreshClaims{}, func (token *jwt.Token) (interface{}, error) { return []byte(REFRESH_KEY), nil }) |