Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRandomKey ¶
Types ¶
type JWTConfig ¶
type JWTConfig struct {
PrivateKey any
PublicKey crypto.PublicKey
Algorithm jwt.SigningMethod
Id string
}
func NewJWTConfig ¶
func NewJWTConfigBySecret ¶
func NewRandomRSAJWTConfig ¶
func (*JWTConfig) GetPublicKey ¶
func (*JWTConfig) ParseWithClaims ¶
func (*JWTConfig) UnmarshalJSON ¶
type JWTIssuer ¶
type StandardClaims ¶
type StandardClaims jwt.StandardClaims
func (*StandardClaims) SetIssuer ¶
func (c *StandardClaims) SetIssuer(issuer string)
func (StandardClaims) Valid ¶
func (c StandardClaims) Valid() error
Click to show internal directories.
Click to hide internal directories.