aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/auth/auth.go
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2025-10-12 00:05:30 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2025-10-12 00:05:30 +0530
commita356803594ab36fa69e7dbcbd79261d8b46f4262 (patch)
tree0146efe4c52b1c65c1967ab1f412306c410c10d4 /auth/auth.go
parent193be465b21838d2796fafbe1c5d9854038a3f8c (diff)
removed useless user fields and functions, added rolesv0.19.0
Diffstat (limited to 'auth/auth.go')
-rw-r--r--auth/auth.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/auth/auth.go b/auth/auth.go
index 4ac6445..0b28b57 100644
--- a/auth/auth.go
+++ b/auth/auth.go
@@ -1,5 +1,5 @@
/* openbills - Server for web based Libre Billing Software
- * Copyright (C) 2023 Vidhu Kant Sharma <vidhukant@vidhukant.com>
+ * Copyright (C) 2023-2025 Vidhu Kant Sharma <vidhukant@vidhukant.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -23,7 +23,8 @@ import (
type AuthClaims struct {
jwt.RegisteredClaims
- UserID uint `json:"userid"`
+ UserID uint `json:"userid"`
+ Roles []string `json:"roles"`
}
type RefreshClaims struct {