jwt

package
v0.0.0-...-10bdaf9 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const BEARER_SCHEMA = "Bearer"

Variables

This section is empty.

Functions

func AuthorizeJWT

func AuthorizeJWT() gin.HandlerFunc

route.Use(AuthorizeJWT())

func Detail

func Detail(c *gin.Context) jwt.MapClaims

get detail email from token

Types

type JWTService

type JWTService interface {
	GenerateToken(email string, isUser bool) string
	ValidateToken(token string) (*jwt.Token, error)
}

jwt service

func JWTAuthService

func JWTAuthService() JWTService

auth-jwt

Jump to

Keyboard shortcuts

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