Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthMiddleware ¶
func AuthMiddleware(deps *dependencies.Dependencies) gin.HandlerFunc
AuthMiddleware provides basic authentication capabilities to all routes underneath its usage, only allowing authenticated users access and set a custom local context `account` with the account model for the logged in user.
func AuthenticationRequired ¶
func AuthenticationRequired() gin.HandlerFunc
AuthenticationRequired provides a middleware that checks if the user is logged in, returning a 401 error if not.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.