Widget's user awareness

You can use:

const user = api.getCurrentUser()

if(user) {
  return user.username;
}

More info here:

5 Likes