Skip to content

Commit

Permalink
fix: update cookie retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
Björn Urban committed Jul 27, 2024
1 parent 39a42ee commit 9046d57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/internal/handlers/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ func (h *Handler) logError(w http.ResponseWriter, message string, err error, sta
}

func (h *Handler) getUserEmailFromToken(r *http.Request) (string, error) {
cookie, err := r.Cookie("X-Auth-Token")
cookie, err := r.Cookie("session-cook")
if err != nil {
slog.Error("Authentication Cookie missing", err)
return "", fmt.Errorf("Authentication cookie missing")
Expand Down

0 comments on commit 9046d57

Please sign in to comment.