يمكنك استخدام:
const user = api.getCurrentUser() if(user) { return user.username; }
لمزيد من المعلومات، راجع: