jwtutil

package
v0.0.0-...-e39a43b Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(secret string)

func Issue

func Issue(claims jwt.Claims) (string, error)

func Verify

func Verify(token string, claims jwt.Claims) (*jwt.Token, error)

Types

type JWTUtil

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

func New

func New(secret string) *JWTUtil

func (*JWTUtil) Issue

func (p *JWTUtil) Issue(claims jwt.Claims) (string, error)

func (*JWTUtil) Parse

func (p *JWTUtil) Parse(token string, claims jwt.Claims) (*jwt.Token, error)

Jump to

Keyboard shortcuts

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