Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JWT ¶
type JWT interface { CreateAccessToken(userId uint, userRole string) (Token, error) ParseJwtToken(tokenString string) (*JwtClaims, error) }
func NewJwtManager ¶
func NewJwtManager() JWT
NewJwtManager returns a new JWT manager using JWT config from envs
Click to show internal directories.
Click to hide internal directories.