ijwt

package
v0.0.0-...-02d2a03 Latest Latest
Warning

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

Go to latest
Published: May 3, 2025 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AScretKey = []byte("ZD3oYULPnlBo2wqebduhFQjmrZdaFGaLzayCa8t8HWwxWKbRcGzaNLKkZ31ldeaM")
	RScretKey = []byte("od45zlxmSlBo2wqebduhFQjmrZdaFGaLzayCa8t8Hxfdsfwefwfdsvw3432s32sM")
)

Functions

func SetJWT

func SetJWT(c *gin.Context, uid int64) error

Types

type RefreshClaims

type RefreshClaims struct {
	Uid int64 `json:"uid"`
	jwt.RegisteredClaims
	// contains filtered or unexported fields
}

type Server

type Server interface {
	LoginJwt(c *gin.Context)
}

type UserClaims

type UserClaims struct {
	Uid int64 `json:"uid"`
	// UserAgent 是客户端的信息,用于校验
	UserAgent string
	jwt.RegisteredClaims
}

Jump to

Keyboard shortcuts

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