package
0.0.0-20230302232303-42c0c98a02f4
Repository: https://github.com/bradhacker/compsole.git
Documentation: pkg.go.dev
# Functions
LocalLogin godoc
@Summary Login with a local account @Schemes http https @Description Login with a local account @Tags Auth API @Accept json,mpfd @Param login body auth.UserLoginVals true "User account details" @Produce json @Success 200 {object} auth.UserModel @Header 200 {string} Cookie "`auth-cookie` contains the session token" @Router /auth/local/login [post].
Logout decodes the share session cookie and packs the session into context.
No description provided by the author
UserEntToModel converts the result of a User ENT query into a UserModel for API responses.
# Structs
No description provided by the author
UserLoginVals model info
@Description Used as an input to the login input.
UserModel model info
@Description Used for User login.