Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JwtDecoder ¶
type JwtDecoder struct {
SecretKey string
}
func (JwtDecoder) Decode ¶
func (decoder JwtDecoder) Decode(tokenString string) (*UserClaims, error)
type JwtEncoder ¶
type JwtEncoder struct { SecretKey string SigningMethod *jwt.SigningMethodHMAC }
func (JwtEncoder) Encode ¶
func (encoder JwtEncoder) Encode(claims UserClaims) (string, error)
Click to show internal directories.
Click to hide internal directories.