package
0.0.0-20241118024035-a11252985bfe
Repository: https://github.com/ecodeclub/ginx.git
Documentation: pkg.go.dev

# Functions

NewManagement 定义一个 Management.
NewOptions 定义一个 JWT 配置.
WithAllowTokenHeader 设置允许 token 的请求头.
WithDecryptKey 设置解密密钥.
WithExposeAccessHeader 设置公开资源令牌的请求头.
WithExposeRefreshHeader 设置公开刷新令牌的请求头.
WithGenIDFunc 设置生成 JWT ID 的函数.
WithIssuer 设置签发人.
WithMethod 设置 JWT 的签名方法.
WithNowFunc 设置当前时间.
WithRefreshJWTOptions 设置刷新令牌相关的配置.
WithRotateRefreshToken 设置轮换刷新令牌.

# Structs

No description provided by the author
MiddlewareBuilder 创建一个校验登录的 middleware ignorePath: 默认使用 func(path string) bool { return false } 也就是全部不忽略.
No description provided by the author
No description provided by the author

# Interfaces

Manager jwt 管理器.