package
6.1.0
Repository: https://github.com/issue9/middleware.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
GetToken 获取客户端提交的 token.
No description provided by the author
NewSigner 声明签名对象 expired 普通令牌的过期时间; refresh 刷新令牌的时间,非零表示有刷新令牌,如果为非零值,则必须大于 expired; br 表示将令牌组合成一个对象用以返回给客户端,可以为空,采用返回 [Response] 作为其默认实现;.
NewVerifier 声明 [Verifier] 对象 b 为处理丢弃令牌的对象,如果为空表示不会对任何令牌作特殊处理; f 为 [Claims] 对象的生成方法;.

# Structs

No description provided by the author
No description provided by the author
Signer 证书的签发管理 仅负责对令牌的签发,如果需要验证令牌,则需要 [Verifier] 对象, 同时需要保证 [Verifier] 添加的证书数量和 ID 与当前对象是相同的。.
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
BuildResponseFunc 根据给定的参数返回给定客户端的对象 access 是必须的,表示请求数据的 token; refresh 表示刷新的 token,如果为空,不会输出; expires 表示 access 的过期时间;.
No description provided by the author