diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2025-10-10 17:29:30 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2025-10-10 17:29:30 +0530 |
commit | b0f5cefba592f6bc7166cdd5d83899dc2bbcb355 (patch) | |
tree | a14584ac41b4d9915813db7c63c95248cf8c3dab /auth/auth.go | |
parent | 19c79de205674b0932b13162e779b311ac93444b (diff) |
added refresh token versioningv0.12.0
Diffstat (limited to 'auth/auth.go')
-rw-r--r-- | auth/auth.go | 6 |
1 files changed, 6 insertions, 0 deletions
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 |