tokenverify

package
v2.3.26 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func Secret

func Secret(secret string) jwt.Keyfunc

Types

type Claims

type Claims struct {
	UserID   int
	DeviceID int // login Device
	jwt.RegisteredClaims
}

func BuildClaims

func BuildClaims(userID int, DeviceID int, ttl time.Duration) Claims

func GetClaimFromToken

func GetClaimFromToken(tokensString string, secretFunc jwt.Keyfunc) (*Claims, error)

Jump to

Keyboard shortcuts

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