How to get an attribute of a logged-in user in Velo?

Question:
What are the steps to access and retrieve the specific attributes of the currently logged-in user in Velo, and how can I ensure that I’m correctly handling user permissions and privacy settings in the process?

Product:
[Which editor or feature is your question most relevant to? e.g. Wix Editor, Wix Studio Editor.]

What are you trying to achieve:
[Explain the details of what you are trying to achieve. The more details you provide, the easier it is to understand what you need.]

What have you already tried:
I want to retrieve and display specific attributes of the currently logged-in user in Velo, ensuring that I know what they do and permissions throughout the process.

Additional information:

This is one image of what I want to access when you manage your members.

have a read here to learn more -

image

cannot find the libraries

Or even better, I just need the logged-in member’s ID in addition. How do I do that?

Wait, nvm it was fixed. Here is the code

import { currentMember } from 'wix-members';

$w.onReady(function () {
currentMember.getMember()
    .then((member) => {
        console.log(member);
    });
})