jwtauth

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateToken

func GenerateToken(userClaims map[string]interface{}) (string, error)

func GetUserID

func GetUserID(claims map[string]interface{}) (id string, err error)

func Middleware

func Middleware() func(http.Handler) http.Handler

func UserIDFromContext

func UserIDFromContext(ctx context.Context) string

func ValidateToken

func ValidateToken(tokenString string) (map[string]interface{}, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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