How to get user ID

Is there an easy way that a user can send their ID in order to unlock items for them?
Currently the only workaround is to let them paste JSON.parse(localStorage.getItem(‘persist:user’)).data._id into the chrome console but too many people don’t have pc’s anymore.

Hello and welcome to the forum!
I moved the thread under the web category since the question seems to be related to the web integration.

You need to know the user’s ID to unlock some assets via our API from your app. If this is what you are trying to achieve, we’d recommend you take a look at our events, which you can find on this page: Avatar Creator integration - Ready Player Me
So you can subscribe and obtain the ID automatically. Specifically, you could listen to v1.user.set and v1.user.updated events to retrieve the userId.