public string UserAuthenticate(long userId, string appSessionToken)
 {
     try
     {
         return(_client.V1UserAuthenticateAsync(userId, appSessionToken).Result.SessionToken);
     }
     catch (Exception e)
     {
         _log?.LogError(0, e, "An error has occured while trying to generate an OBO (on-behalf-of) session token for the given user {userId}.", userId);
         throw;
     }
 }