refactor: move Claims type from auth to new identity package
Extract Claims struct from auth/types.go into dedicated identity package for better separation of concerns. Update all imports and usages across auth service, token handling, and request context utilities.
This commit is contained in:
1 parent
298d301ce8
commit
8f73dd3321
5 files changed
+23
-16
No files matched your search
@@ -0,0 +1,10 @@
|
||||
package identity
|
||||
|
||||
import "github.com/google/uuid"
|
||||
|
||||
type Claims struct {
|
||||
UserID uuid.UUID `json:"user_id"`
|
||||
Username string `json:"username"`
|
||||
Role string `json:"role"`
|
||||
Session uuid.UUID `json:"session_id"`
|
||||
}
|
||||
Reference in new issue
Block a user