auth/token.go
2023-10-21 10:26:15 +02:00

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
}