jwt

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const TOKENKEY = "ZeAuinul"

TOKENKEY 用于加密的key,不必修改

Variables

This section is empty.

Functions

func CreateToken

func CreateToken(id string, exp int) (tokens string, err error)

CreateToken 生成Token

func ParseToken

func ParseToken(tokens string) (id, env, userType string, err error)

ParseToken 返回用户的id 、设备名称(或者设备的id)、错误

Types

This section is empty.

Jump to

Keyboard shortcuts

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