jwt

package
v0.0.0-...-95e334a Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2022 License: MIT Imports: 5 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(conf *config.Config) *Manager

func (*Manager) Generate

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

func (*Manager) Validate

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

type UserClaims

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

Jump to

Keyboard shortcuts

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