Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Operator ¶
func (*Operator) GenerateToken ¶
func (h *Operator) GenerateToken(user Claims) (TokenResponse, error)
GenerateToken creates a new JWT token for a user
func (*Operator) GenerateTokenWithTTL ¶ added in v1.2.0
type TokenResponse ¶
TokenResponse represents the response after successful login
Click to show internal directories.
Click to hide internal directories.