Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDataFromJWT ¶
func GetDataFromJWT(c *fiber.Ctx) error
Gets user data (their ID) from the JWT middleware. Should be executed after calling 'JWTMiddleware()'.
func NewAuthHandler ¶
func NewAuthHandler(authRoute fiber.Router, us user.UserService, mail *mailClient.Mailer, i18n *i18n.I18n)
Creates a new authentication handler.
Types ¶
type AuthHandler ¶
type AuthHandler struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.