auth

package
v0.0.0-...-3726c4b Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrToken = errors.New("jwt token error")
View Source
var ErrTokenExpired = errors.New("jwt token expired")

Functions

func GetJwt

func GetJwt(jwt, salt string, token interface{}) error

检查jwt, must be a point

func MakeJwt

func MakeJwt(salt string, tk interface{}) (string, error)

创建jwt

func Md5

func Md5(base []byte) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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