jwt

package
v0.0.0-...-835a9d8 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

func NewManager

func NewManager(logger log.Logger, conf *config.Config) *Manager

func (*Manager) Generate

func (manager *Manager) Generate(id uint64) (string, error)

func (*Manager) Validate

func (manager *Manager) Validate(tokenStr string) (*UserClaims, error)

type UserClaims

type UserClaims struct {
	ID uint64 `json:"id"`
	jwt.StandardClaims
}

Jump to

Keyboard shortcuts

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