finish oauth and local login