How to fetch logged in user from client using session token or api key

<service verb="get" noun="MyUserAccount" authenticate="anonymous-view">
        <out-parameters>
            <parameter name="loggedInUser"/>
        </out-parameters>
        <actions>
            <entity-find-one entity-name="moqui.security.UserAccount" value-field="loggedInUser">
                <field-map field-name="userId" from="ec.user.userId"/></entity-find-one>
        </actions>
    </service>

how fetch logged in user from client using session token or api key

Please provide some context here so we can help you