Added handle error to getAuthInfo