13 lines
204 B
Go
13 lines
204 B
Go
|
|
package auth
|
||
|
|
|
||
|
|
import (
|
||
|
|
"github.com/golang-jwt/jwt/v5"
|
||
|
|
)
|
||
|
|
|
||
|
|
type Claims struct {
|
||
|
|
UserID int64 `json:"user_id"`
|
||
|
|
TenantID int64 `json:"tenant_id"`
|
||
|
|
Role string `json:"role"`
|
||
|
|
jwt.RegisteredClaims
|
||
|
|
}
|