common

package
v0.0.0-...-aa5d22e Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrTokenInvalid  = errors.New("token invalid")
	ErrTokenInactive = errors.New("token inactive")
)

Functions

This section is empty.

Types

type CustomClaims

type CustomClaims struct {
	Id   int    `json:"id"`
	Role string `json:"role"`
	jwt.StandardClaims
}

func ValidateToken

func ValidateToken(tokenString string) (*CustomClaims, error)

Jump to

Keyboard shortcuts

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