Making version a required parameter.
Ensure that loaded is not resolved before loginStatus is known.
Changed .api signature.