middleware

package
v0.0.0-...-3bb274c Latest Latest
Warning

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

Go to latest
Published: May 5, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewJWTAuthMiddleware

func NewJWTAuthMiddleware() echo.MiddlewareFunc

Types

type JWTClaims

type JWTClaims struct {
	User
	jwt.StandardClaims
}

type User

type User struct {
	Username  string `json:"username"`
	UserID    string `json:"user_id"`
	UserEmail string `json:"email"`
}

func GetAuthUser

func GetAuthUser(c echo.Context) (*User, error)

Jump to

Keyboard shortcuts

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