middleware

package
v0.0.0-...-52a3571 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(NewJwtAuth)

ProviderSet is server providers.

Functions

func GenerateToken

func GenerateToken(secret string, user *proto.UserProto) string

GenerateToken by received user claims

func GetClaimsFromAuthString

func GetClaimsFromAuthString(authString, secret string) (*utils.AuthClaim, error)

func NewJwtAuth

func NewJwtAuth(secret string) m.Middleware

NewJwtAuth is middleware of jwt

Types

This section is empty.

Jump to

Keyboard shortcuts

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