Skip to content

Commit

Permalink
fix: try resaving session
Browse files Browse the repository at this point in the history
  • Loading branch information
Björn Urban committed Apr 30, 2024
1 parent ad00df2 commit d005fab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/internal/handlers/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ func (h *Handler) HandleAuthenticate(w http.ResponseWriter, r *http.Request) {
}
slog.Info("Incoming session is authenticated")
sessionUser, ok := session.Values["user"].(string)
session.Save(r, w)
slog.Info(sessionUser)
if !ok {
h.logError(w, "error while fetching user details from session", err, http.StatusInternalServerError)
Expand Down

0 comments on commit d005fab

Please sign in to comment.