jwt

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const TokenKey = "VtvSNnCb"

Variables

This section is empty.

Functions

func CreateToken

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

生成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