2026-04-01 00:58:42 +08:00
|
|
|
package auth
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"github.com/golang-jwt/jwt/v5"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type Claims struct {
|
2026-04-19 14:18:20 +08:00
|
|
|
UserID int64 `json:"user_id"`
|
|
|
|
|
TenantID int64 `json:"tenant_id"`
|
|
|
|
|
PrimaryWorkspaceID int64 `json:"primary_workspace_id"`
|
|
|
|
|
Role string `json:"role"`
|
2026-04-01 00:58:42 +08:00
|
|
|
jwt.RegisteredClaims
|
|
|
|
|
}
|