From d1f72aa0f1bae37584503ac98f2d475c7b6c43e2 Mon Sep 17 00:00:00 2001 From: James Tombleson Date: Tue, 9 Jul 2024 08:32:59 -0700 Subject: [PATCH] /logout was not working correctly because it was doing jwt checks --- internal/handlers/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/handlers/handler.go b/internal/handlers/handler.go index 8015ba8..500554c 100644 --- a/internal/handlers/handler.go +++ b/internal/handlers/handler.go @@ -71,8 +71,8 @@ func NewServer(ctx context.Context, configs config.Configs, apiClient apiclient. users.POST("/login", s.UserAfterLogin) users.GET("/signup", s.UserSignUp) users.POST("/signup", s.UserAfterSignUp) - users.Use(ValidateJwtMiddleware(configs.JwtSecret)) users.GET("/logout", s.UsersLogout) + users.Use(ValidateJwtMiddleware(configs.JwtSecret)) users.GET("/profile", s.UserProfile) s.Router = router