Versions in this module Expand all Collapse all v0 v0.0.1 May 3, 2023 Changes in this version + var ErrMissingHeader = errors.New("the length of the `Authorization` header is zero.") + func Sign(ctx *gin.Context, c Context, secret string) (tokenString string, err error) + type Context struct + Expiry int64 + ID uint64 + UUID string + Username string + func Parse(tokenString string, secret string) (*Context, error) + func ParseRequest(c *gin.Context) (*Context, error)