fix auth stuff
This commit is contained in:
@@ -33,6 +33,6 @@ func authenticatedMiddleware(deps *deps, next http.Handler) http.Handler {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
func CurrentUser(r *http.Request) any {
|
func CurrentUser(r *http.Request) SessionUser {
|
||||||
return r.Context().Value(userContextKey{})
|
return r.Context().Value(userContextKey{}).(SessionUser)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user