auth

package
v0.0.0-...-d0b86cf Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JWT_KEY = "JWT_SECRET"
)

Variables

This section is empty.

Functions

func EditPayload

func EditPayload(token string, m map[string]interface{}) (string, error)

func Extract

func Extract(token string) (jwt.MapClaims, error)

func NewToken

func NewToken(m map[string]interface{}) (string, error)

func Renew

func Renew(token string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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