Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JwtHandler ¶
type JwtHandler struct {
// contains filtered or unexported fields
}
todo: key rotation
func NewJwtHandler ¶
func NewJwtHandler(privateBytes, publicBytes []byte, keyExpiration time.Duration) (*JwtHandler, error)
func (JwtHandler) IssueToken ¶
func (j JwtHandler) IssueToken(userId string) (string, error)
func (JwtHandler) UserIdByToken ¶
func (j JwtHandler) UserIdByToken(tokenString string) (string, error)
Click to show internal directories.
Click to hide internal directories.