jwt

package
v0.0.0-...-d8850a5 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

jwt

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateToken

func GenerateToken(claimData entity.ClaimData, jwtConfig *entity.JwtConfig) string

GenerateToken 生成jwt token

func GetJwtConfig

func GetJwtConfig(jwtConfig *entity.JwtConfig) *entity.JwtConfig

GetJwtConfig 获取jwt配置

func ParseToken

func ParseToken(tokenString string, jwtConfig *entity.JwtConfig) (*entity.ClaimData, error)

ParseToken 解析

Types

This section is empty.

Jump to

Keyboard shortcuts

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