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.
11 lines
223 B
Go
11 lines
223 B
Go
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"`
|
|
}
|