Improved the auth component's constructor