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 --- user/user.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'user') 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 -- cgit v1.2.3