Process loggedin middleware

process_loggedin_middleware(
  req,
  res,
  user = Sys.getenv("AMBHTMX_USER"),
  cookie_loggedin = "loggedin"
)

Arguments

req

request object

res

response object

user

if you want to customize the required user or it uses AMBHTMX_USER

if you need to customize the name of the loggedin cookie

Value

the updated request with the req$loggedin status