I am attempting to access the user session in http-functions.js
I have imported wixUsers from wix-users-backend, this however does not seem to work at all?
The plan is to grab the user id:
let user = wixUsers.currentUser;
let userId = user.id;
If there is any other way to get the session id that would awesome!