Update NuGet packages
Refactor Auth logic