replace auth function for getAccountInfoById