Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HasuraClaimsBuilder = builder.Register(hasuraClaimsBuilder{}, HasuraClaims{}).(hasuraClaimsBuilder)
View Source
var StandardClaimsBuilder = builder.Register(standardClaimsBuilder{}, jwt.StandardClaims{}).(standardClaimsBuilder)
Functions ¶
This section is empty.
Types ¶
type BuilderService ¶
type BuilderService struct {
// contains filtered or unexported fields
}
func NewBuilderService ¶
func NewBuilderService(cfg *context.Config) *BuilderService
func (*BuilderService) BuildCustomClaims ¶
func (b *BuilderService) BuildCustomClaims(user *model.User) *CustomClaims
type CustomClaims ¶
type CustomClaims struct { StandardClaims jwt.StandardClaims HasuraClaims HasuraClaims `json:"https://hasura.io/jwt/claims"` }
func (CustomClaims) Valid ¶
func (c CustomClaims) Valid() error
hacky but I did'nt find better wsay to do this
type HasuraClaims ¶
Click to show internal directories.
Click to hide internal directories.