jwt

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config ...Config) gin.HandlerFunc

Types

type Config

type Config struct {
	// 当函数返回true时,跳过中间件
	Next func(c *gin.Context) bool
	// 头认证字段,默认:Authorization
	HeaderScheme string
	// 授权认证字段,默认:Bearer
	AuthScheme string
	// 签名key
	SigningKey []byte
}

Jump to

Keyboard shortcuts

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