14 lines
186 B
Go
14 lines
186 B
Go
package auth
|
|
|
|
import "github.com/golang-jwt/jwt/v5"
|
|
|
|
const (
|
|
RoleUser = "user"
|
|
RoleAdmin = "admin"
|
|
)
|
|
|
|
type MicrofilmClaims struct {
|
|
Role string `json:"role"`
|
|
jwt.RegisteredClaims
|
|
}
|