Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GeneratePasswordHash ¶
Types ¶
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
func (*Auth) JwtMiddleware ¶
func (a *Auth) JwtMiddleware(next echo.HandlerFunc) echo.HandlerFunc
JwtMiddleware validates JWT tokens
type JWTClaims ¶
type JWTClaims struct {
Username string `json:"username"`
jwt.RegisteredClaims
}
JWTClaims represents the JWT token claims
type LoginRequest ¶
LoginRequest represents the login request payload
type LoginResponse ¶
type LoginResponse struct {
Token string `json:"token"`
}
LoginResponse represents the login response with token
Click to show internal directories.
Click to hide internal directories.