jwt

package
v0.0.0-...-62da3de Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

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

type VerifyFunc func([]byte) string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL