Tweak to auth lib