diff options
Diffstat (limited to 'auth/auth.go')
| -rw-r--r-- | auth/auth.go | 5 | 
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 {  |