Documentation
¶
Index ¶
Constants ¶
View Source
const AdminClaimsKey = "admin_claims"
Variables ¶
This section is empty.
Functions ¶
func FiberMiddleware ¶
FiberMiddleware provide Fiber's built-in middlewares. See: https://docs.gofiber.io/api/middleware
func FormatResponse ¶
FormatResponse middleware formats the response to a standard format.
Types ¶
type AuthMiddleware ¶
type AuthMiddleware struct {
// contains filtered or unexported fields
}
AuthMiddleware handles JWT authentication for protected routes
func NewAuthMiddleware ¶
func NewAuthMiddleware(jwtService *auth.JWTService, config *config.StellarConfig) *AuthMiddleware
NewAuthMiddleware creates a new auth middleware instance
func (*AuthMiddleware) RequireAuth ¶
func (m *AuthMiddleware) RequireAuth() fiber.Handler
RequireAuth is a middleware that validates JWT tokens from cookies
Click to show internal directories.
Click to hide internal directories.