jwt

package
v2.10.2 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 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 JWTManager

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

func NewJWTManager

func NewJWTManager(signingKey ...string) *JWTManager

func (*JWTManager) DecodeToken added in v2.1.2

func (manager *JWTManager) DecodeToken(tokenString string) (map[string]interface{}, error)

func (*JWTManager) GenerateToken

func (manager *JWTManager) GenerateToken(expirationTime time.Duration, data map[string]interface{}) (string, error)

func (*JWTManager) ValidateToken

func (manager *JWTManager) ValidateToken(tokenString string) (jwt.Claims, error)

Jump to

Keyboard shortcuts

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