Added hasAuthCode

Added hasAuthCode() in order to tell if the user needs to authenticate with their login info.