Finalize authentication