Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Claims ¶
type Claims struct { jwt.RegisteredClaims PublicClaims PrivateClaims }
type PublicClaims ¶
type PublicClaims struct { // 作用域 Scope []string `json:"scope"` }
PublicClaims 公有声明,JWT 签发方可以自定义的声明,但是为了避免冲突,应该在 Registry 中定义它们 声明参考 https://www.iana.org/assignments/jwt/jwt.xhtml
Click to show internal directories.
Click to hide internal directories.