GetAuthToken returns an empty string after login to the Game Center

FString UMobileUtilsBlueprintLibrary::GetAuthToken()
{
auto OnlineSubsystem = IOnlineSubsystem::Get();
OnlineSubsystem->GetIdentityInterface()->GetAuthToken(0);
}

If i use the above function after login to Game Center, an empty string is returned.
Thank you in advance.