Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JWTService ¶
type JWTService interface { GenerateToken(userId string, isAdmin bool, email string, password string) (t string, err error) ParseToken(tokenString string) (claims JwtCustomClaim, err error) }
func NewJWTService ¶
func NewJWTService(secretKey, issuer string, expired time.Duration) JWTService
type JwtCustomClaim ¶
Click to show internal directories.
Click to hide internal directories.