Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrAuthHeaderEmpty = errors.New("authorization header is not provided") ErrAuthHeaderInvalidFormat = errors.New("invalid authorization header format") ErrAuthHeaderUnsupportedType = errors.New("unsupported authorization type") ErrUserDeletedOrBanned = errors.New("user has been deleted or banned") )
Functions ¶
func RequireAuth ¶
func RequireAuth(repo AuthRepository, tokenMaker core.TokenMakerComponent) gin.HandlerFunc
Types ¶
Click to show internal directories.
Click to hide internal directories.