jwtx

package
v0.3.27 Latest Latest
Warning

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

Go to latest
Published: May 6, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JwtClient added in v0.3.13

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

func NewJwtX added in v0.3.13

func NewJwtX(context context.Context, key string) *JwtClient

func (*JwtClient) GetToken added in v0.3.13

func (j *JwtClient) GetToken(secretKey string, iat, seconds, userId int64) (string, error)

func (*JwtClient) GetUid added in v0.3.13

func (j *JwtClient) GetUid() int64

func (*JwtClient) GetUidByToken added in v0.3.13

func (j *JwtClient) GetUidByToken(secretKey string, tokenString string) int64

Jump to

Keyboard shortcuts

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