auth

package
v0.0.0-...-91ffa7f Latest Latest
Warning

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

Go to latest
Published: May 25, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth(c *gin.Context)

func AuthError

func AuthError(code int, message string, c *gin.Context)

func GenerateToken

func GenerateToken(payload map[string]string) (string, error)

func GetKey

func GetKey(c *gin.Context)

func ParseToken

func ParseToken(myToken string) (jwt.MapClaims, error)

func SampleGenerateToken

func SampleGenerateToken(mySigningKey []byte) (string, error)

func SessionCheck

func SessionCheck(token string) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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