ws: Refactor cockpit_auth_login_finish() to add flags argument

We want to pass more than one flag here in the future. Plus this
enhances code readability.