middleware

package
v0.0.0-...-0dae272 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateJWT

func CreateJWT(user *types.User) (jwt.MapClaims, string, error)

func Logger

func Logger(next http.Handler) http.Handler

func ValidateJWT

func ValidateJWT(token string) (*jwt.Token, error)

Types

type JWTMiddleware

type JWTMiddleware struct {
	// contains filtered or unexported fields
}

func NewJWTMiddleware

func NewJWTMiddleware(store store.UserStorer) *JWTMiddleware

func (*JWTMiddleware) Middleware

func (m *JWTMiddleware) Middleware(next http.Handler) http.Handler

Jump to

Keyboard shortcuts

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