tjwt

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2025 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JwtParseClaims

func JwtParseClaims(jwtTokenString, jwtSecret string) (jwt.MapClaims, error)

JwtParseClaims 传入JWT字符串,解析并返回其中的claims(明文字段内容),如claims['username']获取username的值 Args: jwtTokenString JWT字符串, jwtSecret JWT密钥 Returns: jwt.MapClaims, error

Types

This section is empty.

Jump to

Keyboard shortcuts

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