jwt

package
v0.0.0-...-96e820d Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetJwtClaims

func GetJwtClaims(token *jwt.Token) map[string]interface{}

func GetJwtMiddleware

func GetJwtMiddleware(ContextKey string) middleware.JWTConfig

func GetJwtMiddlewareAdmin

func GetJwtMiddlewareAdmin() echo.MiddlewareFunc

func GetJwtMiddlewareUser

func GetJwtMiddlewareUser() echo.MiddlewareFunc

func GetJwtToken

func GetJwtToken(id int, type_jwt string) (string, error)

Types

type JwtCustomClaims

type JwtCustomClaims struct {
	Id   int    `json:"id"`
	Type string `json:"type"`
	jwt.StandardClaims
}

jwtCustomClaims are custom claims extending default ones.

Jump to

Keyboard shortcuts

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