EOS: How can I get Epic Account ID and Nickname of the user who is authenticated in the game client?

Please tell me the equivalent for EOS to get Epic Account ID and Nickname of the user.
I mean an analogue of these functions Steam API:
CSteamID steamID = SteamUser()->GetSteamID();
SteamFriends()->GetPersonaName();

How can this data (Epic Account ID and Nickname of the user) be obtained in the game client for an authenticated user?
Is it possible to see some sample code?
Thank You!