Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JwtWrapper ¶
func NewJwtWrapper ¶
func NewJwtWrapper(secretKey string, issuer string, tokenTTL time.Duration) *JwtWrapper
func (*JwtWrapper) GenerateToken ¶
func (jw *JwtWrapper) GenerateToken(user *models.User) (string, error)
func (*JwtWrapper) ParseToken ¶
func (jw *JwtWrapper) ParseToken(accessToken string) (*JwtClaims, error)
Click to show internal directories.
Click to hide internal directories.