From b0f5cefba592f6bc7166cdd5d83899dc2bbcb355 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Fri, 10 Oct 2025 17:29:30 +0530 Subject: added refresh token versioning --- auth/auth.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'auth/auth.go') diff --git a/auth/auth.go b/auth/auth.go index 7116a2c..4ac6445 100644 --- a/auth/auth.go +++ b/auth/auth.go @@ -26,6 +26,12 @@ type AuthClaims struct { UserID uint `json:"userid"` } +type RefreshClaims struct { + jwt.RegisteredClaims + UserID uint `json:"userid"` + Version uint `json:"version"` +} + type LoginReq struct { AccountName string Method string -- cgit v1.2.3