Nexys.getUser()
Returns string
or null
.
This will return current configured user or null if no user is configured. Learn how to configure a user here.
User will be configured automatically if you are using localStorage
and user is signed in using setUser
configuration.
Example