Finalized local auth functionality