Versions in this module Expand all Collapse all v1 v1.0.1 Nov 25, 2025 v1.0.0 Mar 9, 2025 Changes in this version + func GenerateSignedJwt(userId int, email string, role types.UserRole, jwtSecret string) (string, error) + type AuthHandlerImpl struct + func NewAuthHandler(store types.UserStore, logger *slog.Logger, jwtSecret string, ...) *AuthHandlerImpl + func (h *AuthHandlerImpl) GetMe(c fiber.Ctx) error + func (h *AuthHandlerImpl) Login(c fiber.Ctx) error + func (h *AuthHandlerImpl) Register(c fiber.Ctx) error + type AuthUserPayload struct + Email string + User_id int + User_role types.UserRole + type JwtClaims struct + Email string + UserId int + UserRole types.UserRole + func VerifyJwt(tokenString string, jwtSecret string) (*JwtClaims, error) + type LoginPayload struct + Email string + Password string + func (p LoginPayload) Validate() error + type RegisterPayload struct + Email string + Password string + func (p RegisterPayload) Validate() error