jwt

package
v0.0.0-...-b50d13f Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: Apache-2.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 uint64
	jwt.RegisteredClaims
}

type Manager

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

func NewManager

func NewManager(key string) *Manager

func (*Manager) Sign

func (m *Manager) Sign(claims *CustomClaims) (string, error)

func (*Manager) Validate

func (m *Manager) Validate(raw string) error

Jump to

Keyboard shortcuts

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