Merging in the React Refactor #56

Merged
azpect merged 51 commits from refactor/react into master 2025-12-28 22:27:52 -07:00
2 changed files with 1799 additions and 6 deletions
Showing only changes of commit f93ff6501a - Show all commits

View File

@ -26,12 +26,14 @@ func (s *Server) HomePageHandler(ctx *gin.Context) {
loggedIn := domain.IsLoggedIn(ctx)
// Ensure user is logged in with a valid account
if loggedIn {
if user := s.deps.UserService.GetAuthenicatedUser(ctx); user == nil {
// Log (stale) user out
s.SetCookie(ctx, "jwt_token", "", -1)
s.SetCookie(ctx, "search-filters", "", -1)
loggedIn = false
}
}
var page templ.Component
if loggedIn {

File diff suppressed because it is too large Load Diff