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 Issuer string }
func NewJWTConfig ¶
func NewJWTConfigBySecret ¶
func NewRandomRSAJWTConfig ¶
func (*JWTConfig) GetPublicKey ¶
func (*JWTConfig) ParseWithClaims ¶
func (*JWTConfig) SignedString ¶
func (*JWTConfig) UnmarshalJSON ¶
type JWTIssuer ¶
type StandardClaims ¶
type StandardClaims jwt.StandardClaims
func (*StandardClaims) SetIssuer ¶
func (c *StandardClaims) SetIssuer(ctx context.Context, issuer string)
func (StandardClaims) Valid ¶
func (c StandardClaims) Valid() error
Click to show internal directories.
Click to hide internal directories.