jwtx

package
v0.3.10 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CtxKeyJwtUid = "jwtUserId" //用户端

Functions

func GetToken

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

func GetUid

func GetUid(ctx context.Context) int64

func GetUidByToken

func GetUidByToken(secretKey string, tokenString string) int64

func GetUidFromCtx

func GetUidFromCtx(ctx context.Context) int64

Types

This section is empty.

Jump to

Keyboard shortcuts

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