Documentation
¶
Overview ¶
Package usersapi provides HTTP handlers for user authentication and management.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAuthRoutes ¶
func AddAuthRoutes(mux *http.ServeMux, loginManager middleware.LoginManager, tokenManager middleware.AuthzManager)
Types ¶
type LoginRequest ¶
type LoginRequest struct {
Email string `json:"email" example:"user@example.com"`
Password string `json:"password" example:"s3cr3t!"`
}
LoginRequest represents credentials for programmatic login.
Click to show internal directories.
Click to hide internal directories.