xjwt

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateToken

func CreateToken(claims jwt.Claims, key string) (string, error)

CreateToken 创建 JWT,key 必须大于等于32

func ParseToken

func ParseToken(tokenStr string, key string, claims jwt.Claims) (*jwt.Token, error)

ParseToken 解析 JWT

Types

This section is empty.

Jump to

Keyboard shortcuts

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