aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/auth/auth.go
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2025-10-10 17:29:30 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2025-10-10 17:29:30 +0530
commitb0f5cefba592f6bc7166cdd5d83899dc2bbcb355 (patch)
treea14584ac41b4d9915813db7c63c95248cf8c3dab /auth/auth.go
parent19c79de205674b0932b13162e779b311ac93444b (diff)
added refresh token versioningv0.12.0
Diffstat (limited to 'auth/auth.go')
-rw-r--r--auth/auth.go6
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