security.currentUserId deprecated
Retrieves the user id of the current user.
Deprecated
Use userSecurity.users.getCurrent().getId() instead.
js
security.currentUserId()Returns
stringExamples
js
const userId = security.currentUserId();