middleware

package module
v0.0.0-...-5ce0e6c Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 7 Imported by: 0

README

go-common-v2-dh-middleware

Documentation

Overview

* @Author : Symphony zhangleping@cezhiqiu.com * @Date : 2024-05-08 19:49:42 * @LastEditors : Symphony zhangleping@cezhiqiu.com * @LastEditTime : 2024-05-08 19:51:36 * @FilePath : /v2/go-common-v2-dh-middleware/jwt.go * @Description : * * Copyright (c) 2024 by 大合前研, All Rights Reserved.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JWTGenerateToken

func JWTGenerateToken(jwtSecret, refreshSecret, userId, account string, expSec int64, refreshSec int64) (string, string, error)

生成JWT Token

func JWTParseToken

func JWTParseToken(jwtSecret string) gin.HandlerFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

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