aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/user/user.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 /user/user.go
parent19c79de205674b0932b13162e779b311ac93444b (diff)
added refresh token versioningv0.12.0
Diffstat (limited to 'user/user.go')
-rw-r--r--user/user.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/user/user.go b/user/user.go
index b130ab9..dbcbad0 100644
--- a/user/user.go
+++ b/user/user.go
@@ -40,6 +40,7 @@ func init() {
type User struct {
gorm.Model
u.Address
+ TokenVersion uint // this can be incremented to disable existing refresh token(s)
FullName string
FirmName string
Gstin string
@@ -50,9 +51,9 @@ type User struct {
Password string
LogoFile string
SignatureFile string
+ IsVerified bool // this should be removed and tokens should be issued upon verification
// will be printed with address on the invoice
Details string
- IsVerified bool
// a note is printed on every invoice.
// This is the default that gets automatically set
DefaultInvoiceNote string