Session ID

Hello,

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!

1 Like

I’m also needing this functionality. Any progress?

What functionality do you need? Please add your own issue into a new post instead of bumping up an old post. Explain what you are trying to do, what works, and what doesn’t. Also, add any code in a code block as stated in the Forum Guidelines.

This post is an old post and is being closed.