I am using a combination of two Craft 2 plugins, Cookies and Rest to get the logged in status of a user. What is the recommended way of doing this in Craft 3?
{% set userReq =
craft.rest.request
.headers({
Cookie: cookie
})
.url("https://api2.lumi.com/auth/current")
.send()
%}