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.

Closes #1232
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>