package
0.1.0
Repository: https://github.com/udugong/token.git
Documentation: pkg.go.dev

# Functions

NewTokenManager 创建 jwt 管理器.
WithAddParserOption 添加 jwt 解析器的选项.
WithDecryptKey 设置解密密钥.
WithGenAudienceFunc 设置生成 jwt Audience 的函数.
WithGenIDFunc 设置生成 jwt ID 的函数.
WithGenNotBeforeFunc 设置生成 jwt NotBefore 的函数.
WithGenSubjectFunc 设置生成 jwt Subject 的函数.
WithIssuer 设置签发者.
WithMethod 设置 jwt 的签名方式.
WithSetParserOption 设置 jwt 解析器的选项.
WithTimeFunc 设置生成 jwt 的时间函数.

# Structs

ClaimsOption claims 配置.
RegisteredClaims are a structured version of the JWT Claims Set, restricted to Registered Claim Names, as referenced at https://datatracker.ietf.org/doc/html/rfc7519#section-4.1 This type can be used on its own, but then additional private and public claims embedded in the JWT will not be parsed.
TokenManager 定义 jwt 的管理程序.

# Interfaces

Claims represent any form of a JWT Claims Set according to https://datatracker.ietf.org/doc/html/rfc7519#section-4.
An Option configures a TokenManager.