token

package
v0.0.0-...-e840c4d Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2022 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomClaims

type CustomClaims struct {
	UserId string `json:"userId"`
	jwt.StandardClaims
}

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func InitializeManager

func InitializeManager() *Manager

func NewManager

func NewManager(config *jwt.Config) *Manager

func (Manager) GenerateJWT

func (m Manager) GenerateJWT(userId string, expiredTime time.Duration) (string, *exception.InternalServerError)

func (Manager) VerifyJWT

func (m Manager) VerifyJWT(tokenString string) (string, *exception.BadRequestError)

Jump to

Keyboard shortcuts

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