Back to godoc.org

Package middleware

v0.0.0-...-3bb274c
Latest Go to latest

The highest tagged major version is .

Published: May 5, 2020 | License: MIT | Module: github.com/kandithws/sharespace-api/api-gateway

Index

func NewJWTAuthMiddleware

func NewJWTAuthMiddleware() echo.MiddlewareFunc

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)

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier