Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthInterface ¶
type Authorization ¶
type Authorization struct { AuthInfo `json:"auth"` jwt.RegisteredClaims AuthInfoRaw string `json:"-"` }
func (*Authorization) GenerateToken ¶
func (x *Authorization) GenerateToken(secret []byte) (string, error)
func (*Authorization) ParseToken ¶
func (x *Authorization) ParseToken(token string, secret []byte) error
func (*Authorization) Validate ¶
func (x *Authorization) Validate() error
type Context ¶
type Context[REQ any] struct { LastActiveAt int64 *Authorization *contexti.RequestContext[REQ] }
func (*Context[REQ]) ContextWrapper ¶
Click to show internal directories.
Click to hide internal directories.