Documentation
¶
Index ¶
Constants ¶
View Source
const (
BearerStar = "Bearer "
)
Variables ¶
This section is empty.
Functions ¶
func NewJwt ¶
func NewJwt(fn VerifyFunc) eudore.HandlerFunc
Types ¶
type VerifyFunc ¶
func NewVerifyHS256 ¶
func NewVerifyHS256(secret []byte) VerifyFunc
func (VerifyFunc) Parse ¶
func (fn VerifyFunc) Parse(token string, dst interface{}) error
func (VerifyFunc) ParseBearer ¶
func (fn VerifyFunc) ParseBearer(jwtstr string) (map[string]interface{}, error)
func (VerifyFunc) ParseMap ¶
func (fn VerifyFunc) ParseMap(token string) (dst map[string]interface{}, err error)
func (VerifyFunc) Signed ¶
func (fn VerifyFunc) Signed(claims interface{}) string
Click to show internal directories.
Click to hide internal directories.