xauth

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetJWT

func GetJWT(key string, claims map[string]interface{}, expire int) (string, error)

GetJWT 生成 jwt token

func ParseJWT

func ParseJWT(key, token string) (claims map[string]interface{}, err error)

ParseJWT 解析 jwt token

func ParseJWTPayload

func ParseJWTPayload(token string) (map[string]interface{}, error)

ParseJWTPayload 解析 jwt token payload 不校验签名

Types

This section is empty.

Jump to

Keyboard shortcuts

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