so, i’m writing a basic auth filter (which uses pr...
# http4k
n
so, i’m writing a basic auth filter (which uses proprietary stuff to determine if a user is authed from this, i get a special object that represents the user’s auth state. i need to subsequently pass this around to every handler/request afterwards. what’s the best way to handle that? variable on the top-level
HTTPHandler
class? since all the handlers are functions, i’m not sure how to pass it to them from the
routes()
function call
✔️ 1
Oh man, thanks! ❤️
🙂 1