Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authentication ¶
type Authentication struct {
// contains filtered or unexported fields
}
func NewAuthentication ¶
func NewAuthentication(secretKey string) *Authentication
func (*Authentication) GenerateJWT ¶
func (auth *Authentication) GenerateJWT(payload map[string]any) (string, error)
func (*Authentication) ValidateJWT ¶
func (auth *Authentication) ValidateJWT(tokenString string) (jwt.MapClaims, error)
Click to show internal directories.
Click to hide internal directories.