jwt

package
v1.1.10-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: MIT Imports: 4 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() *Manager

func (*Manager) Generate

func (manager *Manager) Generate(user *model.User) (string, error)

func (*Manager) Verify

func (manager *Manager) Verify(accessToken string) (*UserClaims, error)

type UserClaims

type UserClaims struct {
	jwt.StandardClaims
	Username string `json:"username"`
}

Jump to

Keyboard shortcuts

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