Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JWTManager ¶
type JWTManager struct {
// contains filtered or unexported fields
}
func NewJWTManager ¶
func NewJWTManager(secret string, duration time.Duration) *JWTManager
func (*JWTManager) GenerateJWT ¶
func (manager *JWTManager) GenerateJWT(userId string) (string, error)
func (*JWTManager) VerifyToken ¶
func (manager *JWTManager) VerifyToken(accessToken string) (*Payload, error)
VerifyToken verifies given token
Click to show internal directories.
Click to hide internal directories.