refactory sina authentication