diff options
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 |