From b457c74d493a96f3e27aff8732bba603bc4c5353 Mon Sep 17 00:00:00 2001 From: Derek Wright Date: Thu, 18 Dec 2025 14:12:00 -0500 Subject: [PATCH] fix auth stuff --- auth/auth0/middleware.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auth/auth0/middleware.go b/auth/auth0/middleware.go index 1cde349..5b1e708 100644 --- a/auth/auth0/middleware.go +++ b/auth/auth0/middleware.go @@ -33,6 +33,6 @@ func authenticatedMiddleware(deps *deps, next http.Handler) http.Handler { }) } -func CurrentUser(r *http.Request) any { - return r.Context().Value(userContextKey{}) +func CurrentUser(r *http.Request) SessionUser { + return r.Context().Value(userContextKey{}).(SessionUser) }